ETH Price: $2,258.05 (-0.97%)
 

Overview

ETH Balance

0.06260074294964244 ETH

Eth Value

$141.36 (@ $2,258.05/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer46004372017-11-22 11:42:392995 days ago1511350959IN
0xDd2ee38f...fF66cac4A
0.01 ETH0.0011979620
Transfer45981522017-11-22 2:41:192996 days ago1511318479IN
0xDd2ee38f...fF66cac4A
0.01 ETH0.0014979620
Transfer45886802017-11-20 13:39:432997 days ago1511185183IN
0xDd2ee38f...fF66cac4A
0.01 ETH0.0017979620
0xed91c90645124482017-11-08 7:48:413010 days ago1510127321IN
0xDd2ee38f...fF66cac4A
0 ETH0.000084942
Deposit Funds45124482017-11-08 7:48:413010 days ago1510127321IN
0xDd2ee38f...fF66cac4A
0.03 ETH0.000043412
__callback45068162017-11-07 10:13:483011 days ago1510049628IN
0xDd2ee38f...fF66cac4A
0 ETH0.0023605620
__callback45068132017-11-07 10:13:343011 days ago1510049614IN
0xDd2ee38f...fF66cac4A
0 ETH0.0045001820
__callback45006302017-11-06 10:13:163012 days ago1509963196IN
0xDd2ee38f...fF66cac4A
0 ETH0.0026471620
__callback45006282017-11-06 10:13:053012 days ago1509963185IN
0xDd2ee38f...fF66cac4A
0 ETH0.0045001820
__callback44944352017-11-05 10:12:423013 days ago1509876762IN
0xDd2ee38f...fF66cac4A
0 ETH0.0026471620
__callback44944332017-11-05 10:12:053013 days ago1509876725IN
0xDd2ee38f...fF66cac4A
0 ETH0.0045001820
Deposit Funds44926522017-11-05 3:28:423013 days ago1509852522IN
0xDd2ee38f...fF66cac4A
0.05 ETH0.000173668
__callback44881152017-11-04 10:11:463014 days ago1509790306IN
0xDd2ee38f...fF66cac4A
0 ETH0.0035621620
__callback44881122017-11-04 10:11:063014 days ago1509790266IN
0xDd2ee38f...fF66cac4A
0 ETH0.0036010620
Transfer44866372017-11-04 4:33:103014 days ago1509769990IN
0xDd2ee38f...fF66cac4A
0.01 ETH0.000719188
__callback44819082017-11-03 10:10:153015 days ago1509703815IN
0xDd2ee38f...fF66cac4A
0 ETH0.0026458820
__callback44819052017-11-03 10:09:393015 days ago1509703779IN
0xDd2ee38f...fF66cac4A
0 ETH0.0045001820
__callback44757392017-11-02 10:09:303016 days ago1509617370IN
0xDd2ee38f...fF66cac4A
0 ETH0.0026471620
__callback44757372017-11-02 10:08:573016 days ago1509617337IN
0xDd2ee38f...fF66cac4A
0 ETH0.004498920
__callback44696362017-11-01 10:08:413017 days ago1509530921IN
0xDd2ee38f...fF66cac4A
0 ETH0.0038762220
__callback44696342017-11-01 10:08:163017 days ago1509530896IN
0xDd2ee38f...fF66cac4A
0 ETH0.0036221420
Transfer44691782017-11-01 8:21:443017 days ago1509524504IN
0xDd2ee38f...fF66cac4A
0.11 ETH0.0029692810
__callback44633652017-10-31 10:06:563018 days ago1509444416IN
0xDd2ee38f...fF66cac4A
0 ETH0.0038762220
__callback44633622017-10-31 10:06:253018 days ago1509444385IN
0xDd2ee38f...fF66cac4A
0 ETH0.0036221420
Transfer44596402017-10-30 19:32:583018 days ago1509391978IN
0xDd2ee38f...fF66cac4A
0.02 ETH0.00009561
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer45068132017-11-07 10:13:343011 days ago1510049614
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer45006302017-11-06 10:13:163012 days ago1509963196
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer45006282017-11-06 10:13:053012 days ago1509963185
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44944352017-11-05 10:12:423013 days ago1509876762
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44944332017-11-05 10:12:053013 days ago1509876725
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44881152017-11-04 10:11:463014 days ago1509790306
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44881152017-11-04 10:11:463014 days ago1509790306
0xDd2ee38f...fF66cac4A
0.0001 ETH
Transfer44881152017-11-04 10:11:463014 days ago1509790306
0xDd2ee38f...fF66cac4A
0.0001 ETH
Transfer44881152017-11-04 10:11:463014 days ago1509790306
0xDd2ee38f...fF66cac4A
0.0005 ETH
Transfer44881152017-11-04 10:11:463014 days ago1509790306
0xDd2ee38f...fF66cac4A
0.0093 ETH
Transfer44881122017-11-04 10:11:063014 days ago1509790266
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44819082017-11-03 10:10:153015 days ago1509703815
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44819052017-11-03 10:09:393015 days ago1509703779
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44757392017-11-02 10:09:303016 days ago1509617370
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44757372017-11-02 10:08:573016 days ago1509617337
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44696362017-11-01 10:08:413017 days ago1509530921
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44696362017-11-01 10:08:413017 days ago1509530921
0xDd2ee38f...fF66cac4A
0.0011 ETH
Transfer44696362017-11-01 10:08:413017 days ago1509530921
0xDd2ee38f...fF66cac4A
0.0011 ETH
Transfer44696362017-11-01 10:08:413017 days ago1509530921
0xDd2ee38f...fF66cac4A
0.0055 ETH
Transfer44696362017-11-01 10:08:413017 days ago1509530921
0xDd2ee38f...fF66cac4A
0.1023 ETH
Transfer44696342017-11-01 10:08:163017 days ago1509530896
0xDd2ee38f...fF66cac4A
0.01003327 ETH
Transfer44633652017-10-31 10:06:563018 days ago1509444416
0xDd2ee38f...fF66cac4A
0.01 ETH
Transfer44633652017-10-31 10:06:563018 days ago1509444416
0xDd2ee38f...fF66cac4A
0.0013 ETH
Transfer44633652017-10-31 10:06:563018 days ago1509444416
0xDd2ee38f...fF66cac4A
0.0013 ETH
Transfer44633652017-10-31 10:06:563018 days ago1509444416
0xDd2ee38f...fF66cac4A
0.0065 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
E93

Compiler Version
v0.4.17+commit.bdeb9e52

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-10-27
*/

pragma solidity ^0.4.2;

// import "http://github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol";

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



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



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



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

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

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

    OraclizeAddrResolverI OAR;

    OraclizeI oraclize;
    modifier oraclizeAPI {
        if((address(OAR)==0)||(getCodeSize(address(OAR))==0)) oraclize_setNetwork(networkID_auto);
        oraclize = OraclizeI(OAR.getAddress());
        _;
    }
    modifier coupon(string code){
        oraclize = OraclizeI(OAR.getAddress());
        oraclize.useCoupon(code);
        _;
    }

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

    function __callback(bytes32 myid, string result) {
        __callback(myid, result, new bytes(0));
    }
    function __callback(bytes32 myid, string result, bytes proof) {
    }
    
    function oraclize_useCoupon(string code) oraclizeAPI internal {
        oraclize.useCoupon(code);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }
        
        
    string oraclize_network_name;
    function oraclize_setNetworkName(string _network_name) internal {
        oraclize_network_name = _network_name;
    }
    
    function oraclize_getNetworkName() internal returns (string) {
        return oraclize_network_name;
    }
    
    function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
        if ((_nbytes == 0)||(_nbytes > 32)) throw;
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(_nbytes);
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes[3] memory args = [unonce, nbytes, sessionKeyHash]; 
        bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit);
        oraclize_randomDS_setCommitment(queryId, sha3(bytes8(_delay), args[1], sha256(args[0]), args[2]));
        return queryId;
    }
    
    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }
    
    mapping(bytes32=>bytes32) oraclize_randomDS_args;
    mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return safer_ecrecover(hash, v, r, s);
    }
        
}
// </ORACLIZE_API>

contract DSSafeAddSub {
    function safeToAdd(uint a, uint b) internal returns (bool) {
        return (a + b >= a);
    }
    function safeAdd(uint a, uint b) internal returns (uint) {
        if (!safeToAdd(a, b)) throw;
        return a + b;
    }

    function safeToSubtract(uint a, uint b) internal returns (bool) {
        return (b <= a);
    }

    function safeSub(uint a, uint b) internal returns (uint) {
        if (!safeToSubtract(a, b)) throw;
        return a - b;
    } 
}

contract E93 is DSSafeAddSub, usingOraclize {
    
    modifier onlyOwner {
        
        // ETH93 admin accounts
        
        require(msg.sender == 0x3a31AC87092909AF0e01B4d8fC6E03157E91F4bb || msg.sender == 0x44fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d);
        _;
    }
    
    modifier onlyOraclize {
        require(msg.sender == oraclize_cbAddress());
        _;
    }
    
    modifier onlyOwnerOrOraclize {
        require(msg.sender == oraclize_cbAddress() || msg.sender == 0x3a31AC87092909AF0e01B4d8fC6E03157E91F4bb || msg.sender == 0x44fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d);
        _;
    }
    
    address public owner = 0x44fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d;
    address public charity = 0xD3F81260a44A1df7A7269CF66Abd9c7e4f8CdcD1; // Heifer International - see https://www.heifer.org/support/faq/online-donations to verify this is their Ethereum donation address. 5% of ticket sale revenue goes to this address.
    address public tokenContract = 0xfc5429ef09ed041622a23fee92e65efab389c1ce; // 1% of ticket sales go to E93 token holders, who can trade their E93 tokens in at any time.
    uint public roundNumber;

    struct Lottery {
        uint256 ticketsSold;
        uint256 winningTicket;
        address winner;
        bool finished;
        mapping (uint256 => address) tickets;
		mapping (address => uint256) ticketsPerUser;
    }
    
    mapping (uint => Lottery) public lotteries;
    
    uint public totalTicketsSold;
    
    function() payable {
        
        if (msg.value < 0.01 ether) revert();
        
        uint256 remainder = msg.value % (0.01 ether);

        uint256 numberOfTicketsForUser = safeSub(msg.value, remainder)/10**16; // msg.value will be the amount of Ether the user sends times 10^18, so divide this by 10^16 to get the number of tickets for that user (each ticket costs 0.01 Ether)
        
        totalTicketsSold = safeAdd(totalTicketsSold, numberOfTicketsForUser);
        
        lotteries[roundNumber].ticketsPerUser[msg.sender] = safeAdd(lotteries[roundNumber].ticketsPerUser[msg.sender], numberOfTicketsForUser);
        
        // Each ticket for a lottery round is mapped to an address, eg. lotteries[0][5] would be the 6th ticket for the 1st lottery and might equal an address like 0x344ad635fd4e3684a326664e0698c8fefbe6dd91. With the below code, if the current round number was 0 and 6 tickets had been sold, and say the user has sent 0.03 Ether (buying 3 tickets), then their address would be mapped to lotteries[0][6], lotteries[0][7] and lotteries[0][8]
        
        uint256 ticketToGiveUser = lotteries[roundNumber].ticketsSold;
        
        for (uint i = 0; i < numberOfTicketsForUser; i++) {
            lotteries[roundNumber].tickets[ticketToGiveUser] = msg.sender;
            ticketToGiveUser++;
        }
        
        lotteries[roundNumber].ticketsSold = safeAdd(lotteries[roundNumber].ticketsSold, numberOfTicketsForUser);
        
    }

    function ticketsOwnedByUser (address user) public constant returns (uint256) {
        return lotteries[roundNumber].ticketsPerUser[user];
    }
    
    function lookupPriorLottery (uint256 _roundNumber) public constant returns (uint256, uint256, address) {
        var ticketsSold = lotteries[_roundNumber].ticketsSold;
        var winningTicket = lotteries[_roundNumber].winningTicket;
        var winner = lotteries[_roundNumber].winner;
        return (ticketsSold, winningTicket, winner);
    }
    
    function __callback(bytes32 myid, string result) onlyOraclize {
        
        // This gets called once a day and signals the end of the round, unless the lottery has been paused (ie. stopped == true). This will be called first by the runInOneDay() function (which sets waiting == true and waits a day), followed immediately by the update() function which runs the Oraclize query to get a random number from random.org. 
        
        if (stopped == true) {
            revert();
        }
        
        if (waiting == true) {
            
            update();
            
        } else {
            
        // waiting == false, so the update() function to generate a random number has been called. Time to determine a winner and transfer Ether.
            
        lotteries[roundNumber].finished = true;

        if (lotteries[roundNumber].ticketsSold > 0) {
            
        lotteries[roundNumber].winningTicket = parseInt(result); // 'result' is the random number generated by random.org
        
        lotteries[roundNumber].winner = lotteries[roundNumber].tickets[lotteries[roundNumber].winningTicket];
        
        lotteries[roundNumber].winner.transfer(lotteries[roundNumber].ticketsSold * 0.0093 ether); // 0.0093 Winner gets 93% of ticket sale revenue (ticket price of 0.01 ether * 0.93 * number of tickets sold)
        charity.transfer(lotteries[roundNumber].ticketsSold * 0.0005 ether); // Heifer International gets 5%
        tokenContract.transfer(lotteries[roundNumber].ticketsSold * 0.0001 ether); // E93 token holders get 1% - see eth93.com/crowdsale
        owner.transfer(lotteries[roundNumber].ticketsSold * 0.0001 ether); // eth93.com gets 1%
            
        }
        
        roundNumber++;
        
        runInOneDay();
            
        }
        
    }
    
    // gas for Oraclize. 400000 seems to be just enough, make it 500000 to be safe (can be changed later if necessary).
    uint256 gas = 500000;
    
    bool public waiting;
    
    bool public stopped;
    
    function runInOneDay() payable onlyOwnerOrOraclize {
        
        // This waits for one day (86400 seconds) and then executes the __callback function, which will then execute the update() function (since the waiting variable will be set to true). Then a random number is generated, a winner is determined and the next round starts.
        
        waiting = true;
        oraclize_query(86400, "", "", gas);
    }
  
    function updateGas(uint256 _gas) onlyOwner {
        gas = _gas;
    }
    
    function stopGo() onlyOwner {
        
        // Just in case the lottery needs to be paused for some reason. The contract can still sell tickets in this case, but a winner won't be declared until stopGo() and update() are called again.
        
        if (stopped == false) {
            stopped = true;
        } else {
            stopped = false;
        }
    }
    
    function update() payable onlyOwnerOrOraclize {
        
        // This queries random.org to generate a random number between 0 and the number of tickets sold for the round - 1, which is used to determine the winner. Our API key for random.org is encrypted and can only be read by the Oraclize engine. 
        
        waiting = false;
        
        string memory part1 = "[URL] ['json(https://api.random.org/json-rpc/1/invoke).result.random.data.0', '\\n{\"jsonrpc\":\"2.0\",\"method\":\"generateIntegers\",\"params\":{\"apiKey\":${[decrypt] BEyD7h4VOOTxKLK0QWONeG++mSGyXFb6Ey88tdxrQ6PRT34k6t2w+XxAhvbQeyj0C4B/oHHxzH8MOEW09Qa23hIFY1+RT80ePKI5L09fFQ9Ch3atoP9mxCQj15FMd+rKTG7MlrM51M44xFCIR3eJQMhXAVeGwCU=},\"n\":1,\"min\":0,\"max\":";

        string memory maxRandomNumber = uint2str(lotteries[roundNumber].ticketsSold - 1);

        string memory part2 = ",\"replacement\":true,\"base\":10${[identity] \"}\"},\"id\":1${[identity] \"}\"}']";

        string memory query = strConcat(part1, maxRandomNumber, part2);

        bytes32 rngId = oraclize_query("nested", query, gas);
    
    }
    
    function giveAllToCharity() onlyOwner {
        
        // Only call this if oraclize and random.org have some permanent problem and the round can't be completed, since no random number can be generated from oraclize or random.org. Then all the funds for the last lottery can go to Heifer International. 
        
        charity.transfer(lotteries[roundNumber].ticketsSold * 0.01 ether);
        roundNumber++;
    }
    
    function depositFunds() payable {
        // Used to top up the contract balance without doing anything else - this is necessary to pay for Oraclize calls and transfer costs.
    }

}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"lotteries","outputs":[{"name":"ticketsSold","type":"uint256"},{"name":"winningTicket","type":"uint256"},{"name":"winner","type":"address"},{"name":"finished","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalTicketsSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"roundNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"charity","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_roundNumber","type":"uint256"}],"name":"lookupPriorLottery","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"giveAllToCharity","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"update","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"waiting","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_gas","type":"uint256"}],"name":"updateGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"runInOneDay","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"depositFunds","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"stopGo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"user","type":"address"}],"name":"ticketsOwnedByUser","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60606040527344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073d3f81260a44a1df7a7269cf66abd9c7e4f8cdcd1600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073fc5429ef09ed041622a23fee92e65efab389c1ce600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506207a120600b55341561011557600080fd5b612de1806101246000396000f300606060405236156100fa576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631398e076146102fa57806327dc297e1461037657806334701db8146103e057806338bbfa50146104095780634e2786fb146104b657806355a373d6146104df57806375f12b21146105345780638da5cb5b14610561578063934aa023146105b65780639a437da21461060b5780639d8c39941461067c578063a2e6204514610691578063b405c5491461069b578063c020df48146106c8578063d342e4f4146106eb578063e2c41dbc146106f5578063ed91c906146106ff578063fc6a3ff714610714575b600080600080662386f26fc1000034101561011457600080fd5b662386f26fc100003481151561012657fe5b069350662386f26fc1000061013b3486610761565b81151561014457fe5b049250610153600a5484610783565b600a819055506101b860096000600854815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610783565b60096000600854815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600960006008548152602001908152602001600020600001549150600090505b828110156102b65733600960006008548152602001908152602001600020600301600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081806001019250508080600101915050610231565b6102d86009600060085481526020019081526020016000206000015484610783565b6009600060085481526020019081526020016000206000018190555050505050005b341561030557600080fd5b61031b60048080359060200190919050506107a5565b604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018215151515815260200194505050505060405180910390f35b341561038157600080fd5b6103de60048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610802565b005b34156103eb57600080fd5b6103f3610bfc565b6040518082815260200191505060405180910390f35b341561041457600080fd5b6104b460048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c02565b005b34156104c157600080fd5b6104c9610c07565b6040518082815260200191505060405180910390f35b34156104ea57600080fd5b6104f2610c0d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561053f57600080fd5b610547610c33565b604051808215151515815260200191505060405180910390f35b341561056c57600080fd5b610574610c46565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105c157600080fd5b6105c9610c6c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561061657600080fd5b61062c6004808035906020019091905050610c92565b604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390f35b341561068757600080fd5b61068f610d19565b005b610699610e32565b005b34156106a657600080fd5b6106ae611050565b604051808215151515815260200191505060405180910390f35b34156106d357600080fd5b6106e96004808035906020019091905050611063565b005b6106f36110ef565b005b6106fd6111fd565b005b341561070a57600080fd5b6107126111ff565b005b341561071f57600080fd5b61074b600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506112db565b6040518082815260200191505060405180910390f35b600061076d838361133a565b151561077857600080fd5b818303905092915050565b600061078f8383611348565b151561079a57600080fd5b818301905092915050565b60096020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160149054906101000a900460ff16905084565b61080a611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561084357600080fd5b60011515600c60019054906101000a900460ff161515141561086457600080fd5b60011515600c60009054906101000a900460ff161515141561088d57610888610e32565b610bf8565b600160096000600854815260200190815260200160002060020160146101000a81548160ff0219169083151502179055506000600960006008548152602001908152602001600020600001541115610bdd576108e88161156f565b60096000600854815260200190815260200160002060010181905550600960006008548152602001908152602001600020600301600060096000600854815260200190815260200160002060010154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660096000600854815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060096000600854815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc66210a4cfc69400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610a5557600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6601c6bf5263400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610ad857600080fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc655af3107a400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610b5a57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc655af3107a400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610bdc57600080fd5b5b600860008154809291906001019190505550610bf76110ef565b5b5050565b600a5481565b505050565b60085481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60019054906101000a900460ff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008060008060096000888152602001908152602001600020600001549250600960008881526020019081526020016000206001015491506009600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508282829550955095505050509193909250565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610d9057507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b1515610d9b57600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc662386f26fc1000060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610e1e57600080fd5b600860008154809291906001019190505550565b610e3a612b95565b610e42612b95565b610e4a612b95565b610e52612b95565b6000610e5c611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ed45750733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610f0857507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b1515610f1357600080fd5b6000600c60006101000a81548160ff021916908315150217905550610180604051908101604052806101538152602001612c6361015391399450610f7160016009600060085481526020019081526020016000206000015403611583565b9350608060405190810160405280604881526020017f2c227265706c6163656d656e74223a747275652c2262617365223a3130247b5b81526020017f6964656e746974795d20227d227d2c226964223a31247b5b6964656e7469747981526020017f5d20227d227d275d00000000000000000000000000000000000000000000000081525092506110038585856116d1565b91506110476040805190810160405280600681526020017f6e6573746564000000000000000000000000000000000000000000000000000081525083600b5461170f565b90505050505050565b600c60009054906101000a900460ff1681565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110da57507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b15156110e557600080fd5b80600b8190555050565b6110f7611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061116f5750733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806111a357507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b15156111ae57600080fd5b6001600c60006101000a81548160ff0219169083151502179055506111fa6201518060206040519081016040528060008152506020604051908101604052806000815250600b54611b60565b50565b565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061127657507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b151561128157600080fd5b60001515600c60019054906101000a900460ff16151514156112bd576001600c60016101000a81548160ff0219169083151502179055506112d9565b6000600c60016101000a81548160ff0219169083151502179055505b565b600060096000600854815260200190815260200160002060040160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600082821115905092915050565b6000828284011015905092915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806113c8575060006113c66000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b156113d9576113d76000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561146657600080fd5b6102c65a03f1151561147757600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561154f57600080fd5b6102c65a03f1151561156057600080fd5b50505060405180519050905090565b600061157c82600061244d565b9050919050565b61158b612b95565b600080611596612ba9565b6000808614156115dd576040805190810160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525094506116c8565b8593505b600084141515611607578280600101935050600a848115156115ff57fe5b0493506115e1565b826040518059106116155750595b908082528060200260200182016040525091506001830390505b6000861415156116c457600a8681151561164557fe5b066030017f01000000000000000000000000000000000000000000000000000000000000000282828060019003935081518110151561168057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868115156116bc57fe5b04955061162f565b8194505b50505050919050565b6116d9612b95565b61170684848460206040519081016040528060008152506020604051908101604052806000815250612747565b90509392505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806117815750600061177f6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b15611792576117906000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561181f57600080fd5b6102c65a03f1151561183057600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611934578082015181840152602081019050611919565b50505050905090810190601f1680156119615780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561198057600080fd5b6102c65a03f1151561199157600080fd5b505050604051805190509050823a02670de0b6b3a7640000018111156119bd5760006001029150611b58565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f8260008888886000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015611a85578082015181840152602081019050611a6a565b50505050905090810190601f168015611ab25780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015611aeb578082015181840152602081019050611ad0565b50505050905090810190601f168015611b185780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515611b3957600080fd5b6125ee5a03f11515611b4a57600080fd5b505050506040518051905091505b509392505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611bd257506000611bd06000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b15611be357611be16000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611c7057600080fd5b6102c65a03f11515611c8157600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611d85578082015181840152602081019050611d6a565b50505050905090810190601f168015611db25780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611dd157600080fd5b6102c65a03f11515611de257600080fd5b505050604051805190509050823a02670de0b6b3a764000001811115611e0e5760006001029150611fa8565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f82888888886000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015611ed5578082015181840152602081019050611eba565b50505050905090810190601f168015611f025780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015611f3b578082015181840152602081019050611f20565b50505050905090810190601f168015611f685780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515611f8957600080fd5b6125ee5a03f11515611f9a57600080fd5b505050506040518051905091505b50949350505050565b6000813b9050919050565b600080611fdc731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611fb1565b111561207d57731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506120746040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061209c73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611fb1565b111561213d5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121346040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061215c73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611fb1565b11156121fd5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121f46040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061221c73146500cfd35b22e4a392fe0adc06de1a1368ed48611fb1565b11156122bd5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506122b46040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250612b7b565b60019050612448565b60006122dc736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611fb1565b111561233f57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b600061235e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611fb1565b11156123c1577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b60006123e07351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611fb1565b1115612443577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b600090505b919050565b6000612457612ba9565b60008060008693506000925060009150600090505b83518110156127285760307f01000000000000000000000000000000000000000000000000000000000000000284828151811015156124a757fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916101580156125bf575060397f010000000000000000000000000000000000000000000000000000000000000002848281518110151561254f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b156126705781156125e25760008614156125d857612728565b8580600190039650505b600a83029250603084828151811015156125f857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004038301925061271b565b602e7f01000000000000000000000000000000000000000000000000000000000000000284828151811015156126a257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561271a57600191505b5b808060010191505061246c565b600086111561273a5785600a0a830292505b8294505050505092915050565b61274f612b95565b612757612ba9565b61275f612ba9565b612767612ba9565b61276f612ba9565b612777612ba9565b61277f612b95565b612787612ba9565b6000808e98508d97508c96508b95508a94508451865188518a518c51010101016040518059106127b45750595b9080825280602002602001820160405250935083925060009150600090505b88518110156128865788818151811015156127ea57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561284957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506127d3565b600090505b875181101561293e5787818151811015156128a257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561290157fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061288b565b600090505b86518110156129f657868181518110151561295a57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156129b957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612943565b600090505b8551811015612aae578581815181101515612a1257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515612a7157fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506129fb565b600090505b8451811015612b66578481815181101515612aca57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515612b2957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612ab3565b82995050505050505050505095945050505050565b8060029080519060200190612b91929190612bbd565b5050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612bfe57805160ff1916838001178555612c2c565b82800160010185558215612c2c579182015b82811115612c2b578251825591602001919060010190612c10565b5b509050612c399190612c3d565b5090565b612c5f91905b80821115612c5b576000816000905550600101612c43565b5090565b9056005b55524c5d205b276a736f6e2868747470733a2f2f6170692e72616e646f6d2e6f72672f6a736f6e2d7270632f312f696e766f6b65292e726573756c742e72616e646f6d2e646174612e30272c20275c6e7b226a736f6e727063223a22322e30222c226d6574686f64223a2267656e6572617465496e746567657273222c22706172616d73223a7b226170694b6579223a247b5b646563727970745d2042457944376834564f4f54784b4c4b3051574f4e65472b2b6d534779584662364579383874647872513650525433346b367432772b5878416876625165796a304334422f6f4848787a48384d4f455730395161323368494659312b5254383065504b49354c30396646513943683361746f50396d7843516a3135464d642b724b5447374d6c724d35314d3434784643495233654a514d6858415665477743553d7d2c226e223a312c226d696e223a302c226d6178223aa165627a7a72305820db0da1a85e46575d3c69f0abf1ab8de8127e0a1612478c0bac797850b30886fb0029

Deployed Bytecode

0x606060405236156100fa576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631398e076146102fa57806327dc297e1461037657806334701db8146103e057806338bbfa50146104095780634e2786fb146104b657806355a373d6146104df57806375f12b21146105345780638da5cb5b14610561578063934aa023146105b65780639a437da21461060b5780639d8c39941461067c578063a2e6204514610691578063b405c5491461069b578063c020df48146106c8578063d342e4f4146106eb578063e2c41dbc146106f5578063ed91c906146106ff578063fc6a3ff714610714575b600080600080662386f26fc1000034101561011457600080fd5b662386f26fc100003481151561012657fe5b069350662386f26fc1000061013b3486610761565b81151561014457fe5b049250610153600a5484610783565b600a819055506101b860096000600854815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610783565b60096000600854815260200190815260200160002060040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600960006008548152602001908152602001600020600001549150600090505b828110156102b65733600960006008548152602001908152602001600020600301600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081806001019250508080600101915050610231565b6102d86009600060085481526020019081526020016000206000015484610783565b6009600060085481526020019081526020016000206000018190555050505050005b341561030557600080fd5b61031b60048080359060200190919050506107a5565b604051808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018215151515815260200194505050505060405180910390f35b341561038157600080fd5b6103de60048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610802565b005b34156103eb57600080fd5b6103f3610bfc565b6040518082815260200191505060405180910390f35b341561041457600080fd5b6104b460048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c02565b005b34156104c157600080fd5b6104c9610c07565b6040518082815260200191505060405180910390f35b34156104ea57600080fd5b6104f2610c0d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561053f57600080fd5b610547610c33565b604051808215151515815260200191505060405180910390f35b341561056c57600080fd5b610574610c46565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156105c157600080fd5b6105c9610c6c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561061657600080fd5b61062c6004808035906020019091905050610c92565b604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390f35b341561068757600080fd5b61068f610d19565b005b610699610e32565b005b34156106a657600080fd5b6106ae611050565b604051808215151515815260200191505060405180910390f35b34156106d357600080fd5b6106e96004808035906020019091905050611063565b005b6106f36110ef565b005b6106fd6111fd565b005b341561070a57600080fd5b6107126111ff565b005b341561071f57600080fd5b61074b600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506112db565b6040518082815260200191505060405180910390f35b600061076d838361133a565b151561077857600080fd5b818303905092915050565b600061078f8383611348565b151561079a57600080fd5b818301905092915050565b60096020528060005260406000206000915090508060000154908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160149054906101000a900460ff16905084565b61080a611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561084357600080fd5b60011515600c60019054906101000a900460ff161515141561086457600080fd5b60011515600c60009054906101000a900460ff161515141561088d57610888610e32565b610bf8565b600160096000600854815260200190815260200160002060020160146101000a81548160ff0219169083151502179055506000600960006008548152602001908152602001600020600001541115610bdd576108e88161156f565b60096000600854815260200190815260200160002060010181905550600960006008548152602001908152602001600020600301600060096000600854815260200190815260200160002060010154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660096000600854815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060096000600854815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc66210a4cfc69400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610a5557600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6601c6bf5263400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610ad857600080fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc655af3107a400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610b5a57600080fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc655af3107a400060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610bdc57600080fd5b5b600860008154809291906001019190505550610bf76110ef565b5b5050565b600a5481565b505050565b60085481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60019054906101000a900460ff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008060008060096000888152602001908152602001600020600001549250600960008881526020019081526020016000206001015491506009600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508282829550955095505050509193909250565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610d9057507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b1515610d9b57600080fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc662386f26fc1000060096000600854815260200190815260200160002060000154029081150290604051600060405180830381858888f193505050501515610e1e57600080fd5b600860008154809291906001019190505550565b610e3a612b95565b610e42612b95565b610e4a612b95565b610e52612b95565b6000610e5c611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ed45750733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610f0857507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b1515610f1357600080fd5b6000600c60006101000a81548160ff021916908315150217905550610180604051908101604052806101538152602001612c6361015391399450610f7160016009600060085481526020019081526020016000206000015403611583565b9350608060405190810160405280604881526020017f2c227265706c6163656d656e74223a747275652c2262617365223a3130247b5b81526020017f6964656e746974795d20227d227d2c226964223a31247b5b6964656e7469747981526020017f5d20227d227d275d00000000000000000000000000000000000000000000000081525092506110038585856116d1565b91506110476040805190810160405280600681526020017f6e6573746564000000000000000000000000000000000000000000000000000081525083600b5461170f565b90505050505050565b600c60009054906101000a900460ff1681565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806110da57507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b15156110e557600080fd5b80600b8190555050565b6110f7611358565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061116f5750733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806111a357507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b15156111ae57600080fd5b6001600c60006101000a81548160ff0219169083151502179055506111fa6201518060206040519081016040528060008152506020604051908101604052806000815250600b54611b60565b50565b565b733a31ac87092909af0e01b4d8fc6e03157e91f4bb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061127657507344fc32c2a5d18700284cc9e0e2da3ad83e9a6c5d3373ffffffffffffffffffffffffffffffffffffffff16145b151561128157600080fd5b60001515600c60019054906101000a900460ff16151514156112bd576001600c60016101000a81548160ff0219169083151502179055506112d9565b6000600c60016101000a81548160ff0219169083151502179055505b565b600060096000600854815260200190815260200160002060040160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600082821115905092915050565b6000828284011015905092915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806113c8575060006113c66000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b156113d9576113d76000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561146657600080fd5b6102c65a03f1151561147757600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561154f57600080fd5b6102c65a03f1151561156057600080fd5b50505060405180519050905090565b600061157c82600061244d565b9050919050565b61158b612b95565b600080611596612ba9565b6000808614156115dd576040805190810160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525094506116c8565b8593505b600084141515611607578280600101935050600a848115156115ff57fe5b0493506115e1565b826040518059106116155750595b908082528060200260200182016040525091506001830390505b6000861415156116c457600a8681151561164557fe5b066030017f01000000000000000000000000000000000000000000000000000000000000000282828060019003935081518110151561168057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868115156116bc57fe5b04955061162f565b8194505b50505050919050565b6116d9612b95565b61170684848460206040519081016040528060008152506020604051908101604052806000815250612747565b90509392505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806117815750600061177f6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b15611792576117906000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561181f57600080fd5b6102c65a03f1151561183057600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611934578082015181840152602081019050611919565b50505050905090810190601f1680156119615780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561198057600080fd5b6102c65a03f1151561199157600080fd5b505050604051805190509050823a02670de0b6b3a7640000018111156119bd5760006001029150611b58565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f8260008888886000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015611a85578082015181840152602081019050611a6a565b50505050905090810190601f168015611ab25780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015611aeb578082015181840152602081019050611ad0565b50505050905090810190601f168015611b185780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515611b3957600080fd5b6125ee5a03f11515611b4a57600080fd5b505050506040518051905091505b509392505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611bd257506000611bd06000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611fb1565b145b15611be357611be16000611fbc565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611c7057600080fd5b6102c65a03f11515611c8157600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611d85578082015181840152602081019050611d6a565b50505050905090810190601f168015611db25780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611dd157600080fd5b6102c65a03f11515611de257600080fd5b505050604051805190509050823a02670de0b6b3a764000001811115611e0e5760006001029150611fa8565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f82888888886000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015611ed5578082015181840152602081019050611eba565b50505050905090810190601f168015611f025780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015611f3b578082015181840152602081019050611f20565b50505050905090810190601f168015611f685780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515611f8957600080fd5b6125ee5a03f11515611f9a57600080fd5b505050506040518051905091505b50949350505050565b6000813b9050919050565b600080611fdc731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611fb1565b111561207d57731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506120746040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061209c73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611fb1565b111561213d5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121346040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061215c73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611fb1565b11156121fd5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121f46040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250612b7b565b60019050612448565b600061221c73146500cfd35b22e4a392fe0adc06de1a1368ed48611fb1565b11156122bd5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506122b46040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250612b7b565b60019050612448565b60006122dc736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611fb1565b111561233f57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b600061235e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611fb1565b11156123c1577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b60006123e07351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611fb1565b1115612443577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612448565b600090505b919050565b6000612457612ba9565b60008060008693506000925060009150600090505b83518110156127285760307f01000000000000000000000000000000000000000000000000000000000000000284828151811015156124a757fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916101580156125bf575060397f010000000000000000000000000000000000000000000000000000000000000002848281518110151561254f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b156126705781156125e25760008614156125d857612728565b8580600190039650505b600a83029250603084828151811015156125f857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004038301925061271b565b602e7f01000000000000000000000000000000000000000000000000000000000000000284828151811015156126a257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561271a57600191505b5b808060010191505061246c565b600086111561273a5785600a0a830292505b8294505050505092915050565b61274f612b95565b612757612ba9565b61275f612ba9565b612767612ba9565b61276f612ba9565b612777612ba9565b61277f612b95565b612787612ba9565b6000808e98508d97508c96508b95508a94508451865188518a518c51010101016040518059106127b45750595b9080825280602002602001820160405250935083925060009150600090505b88518110156128865788818151811015156127ea57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561284957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506127d3565b600090505b875181101561293e5787818151811015156128a257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561290157fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061288b565b600090505b86518110156129f657868181518110151561295a57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156129b957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612943565b600090505b8551811015612aae578581815181101515612a1257fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515612a7157fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506129fb565b600090505b8451811015612b66578481815181101515612aca57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515612b2957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612ab3565b82995050505050505050505095945050505050565b8060029080519060200190612b91929190612bbd565b5050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612bfe57805160ff1916838001178555612c2c565b82800160010185558215612c2c579182015b82811115612c2b578251825591602001919060010190612c10565b5b509050612c399190612c3d565b5090565b612c5f91905b80821115612c5b576000816000905550600101612c43565b5090565b9056005b55524c5d205b276a736f6e2868747470733a2f2f6170692e72616e646f6d2e6f72672f6a736f6e2d7270632f312f696e766f6b65292e726573756c742e72616e646f6d2e646174612e30272c20275c6e7b226a736f6e727063223a22322e30222c226d6574686f64223a2267656e6572617465496e746567657273222c22706172616d73223a7b226170694b6579223a247b5b646563727970745d2042457944376834564f4f54784b4c4b3051574f4e65472b2b6d534779584662364579383874647872513650525433346b367432772b5878416876625165796a304334422f6f4848787a48384d4f455730395161323368494659312b5254383065504b49354c30396646513943683361746f50396d7843516a3135464d642b724b5447374d6c724d35314d3434784643495233654a514d6858415665477743553d7d2c226e223a312c226d696e223a302c226d6178223aa165627a7a72305820db0da1a85e46575d3c69f0abf1ab8de8127e0a1612478c0bac797850b30886fb0029

Swarm Source

bzzr://db0da1a85e46575d3c69f0abf1ab8de8127e0a1612478c0bac797850b30886fb

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.