ETH Price: $3,583.31 (-0.05%)
Gas: 30 Gwei

Contract

0x67df3E4661Ab79EC8570Aa7af86D5Bc4de687490
 

Overview

ETH Balance

0.05559999999999999 ETH

Eth Value

$199.23 (@ $3,583.31/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Cancel Bet By Pl...59777412018-07-17 0:57:022081 days ago1531789022IN
0x67df3E46...4de687490
0 ETH0.000092134
Cancel Bet By Pl...59777392018-07-17 0:56:452081 days ago1531789005IN
0x67df3E46...4de687490
0 ETH0.000090722
__callback55977062018-05-11 23:50:202147 days ago1526082620IN
0x67df3E46...4de687490
0 ETH0.000256714
Cancel Bet By Pl...55959092018-05-11 16:35:372147 days ago1526056537IN
0x67df3E46...4de687490
0 ETH0.000258337
Bet55955202018-05-11 14:58:402147 days ago1526050720IN
0x67df3E46...4de687490
0.02 ETH0.001914968
__callback55192482018-04-28 6:57:172161 days ago1524898637IN
0x67df3E46...4de687490
0 ETH0.0005064
__callback55182992018-04-28 2:56:162161 days ago1524884176IN
0x67df3E46...4de687490
0 ETH0.000525974
Bet55182972018-04-28 2:55:352161 days ago1524884135IN
0x67df3E46...4de687490
0.02 ETH0.000331663
__callback55182972018-04-28 2:55:352161 days ago1524884135IN
0x67df3E46...4de687490
0 ETH0.000526194
Bet55182962018-04-28 2:55:202161 days ago1524884120IN
0x67df3E46...4de687490
0.1 ETH0.000963544
Bet55182952018-04-28 2:55:042161 days ago1524884104IN
0x67df3E46...4de687490
0.05 ETH0.000965624
Bet55182922018-04-28 2:53:422161 days ago1524884022IN
0x67df3E46...4de687490
0.02 ETH0.000725773
__callback55182922018-04-28 2:53:422161 days ago1524884022IN
0x67df3E46...4de687490
0 ETH0.000453284
Bet55182892018-04-28 2:52:592161 days ago1524883979IN
0x67df3E46...4de687490
0.02 ETH0.000511852
__callback55182842018-04-28 2:52:012161 days ago1524883921IN
0x67df3E46...4de687490
0 ETH0.000507844
Bet55182782018-04-28 2:49:042161 days ago1524883744IN
0x67df3E46...4de687490
0.1 ETH0.000448284
Bet55182772018-04-28 2:48:162161 days ago1524883696IN
0x67df3E46...4de687490
0.05 ETH0.000445244
Bet55182772018-04-28 2:48:162161 days ago1524883696IN
0x67df3E46...4de687490
0.02 ETH0.001023714
Bet55182762018-04-28 2:47:262161 days ago1524883646IN
0x67df3E46...4de687490
0.02 ETH0.000362864
Bet55182742018-04-28 2:47:122161 days ago1524883632IN
0x67df3E46...4de687490
0.02 ETH0.000362864
Bet55182722018-04-28 2:46:312161 days ago1524883591IN
0x67df3E46...4de687490
0.02 ETH0.000442214
Set Bet Prices55182572018-04-28 2:42:542161 days ago1524883374IN
0x67df3E46...4de687490
0 ETH0.000341524
Clear Wait Pair ...55182462018-04-28 2:39:202161 days ago1524883160IN
0x67df3E46...4de687490
0 ETH0.000519164
Bet55110672018-04-26 20:47:072162 days ago1524775627IN
0x67df3E46...4de687490
0.2 ETH0.000090711
Bet55088962018-04-26 11:43:532162 days ago1524743033IN
0x67df3E46...4de687490
0.2 ETH0.000090711
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Txn Hash Block From To Value
59777392018-07-17 0:56:452081 days ago1531789005
0x67df3E46...4de687490
0.01953332 ETH
55959092018-05-11 16:35:372147 days ago1526056537
0x67df3E46...4de687490
0.01953332 ETH
55955202018-05-11 14:58:402147 days ago1526050720
0x67df3E46...4de687490
0.00093335 ETH
55192482018-04-28 6:57:172161 days ago1524898637
0x67df3E46...4de687490
1 wei
55192482018-04-28 6:57:172161 days ago1524898637
0x67df3E46...4de687490
0.03826664 ETH
55182992018-04-28 2:56:162161 days ago1524884176
0x67df3E46...4de687490
1 wei
55182992018-04-28 2:56:162161 days ago1524884176
0x67df3E46...4de687490
0.19506664 ETH
55182972018-04-28 2:55:352161 days ago1524884135
0x67df3E46...4de687490
1 wei
55182972018-04-28 2:55:352161 days ago1524884135
0x67df3E46...4de687490
0.09706664 ETH
55182962018-04-28 2:55:202161 days ago1524884120
0x67df3E46...4de687490
0.00093335 ETH
55182952018-04-28 2:55:042161 days ago1524884104
0x67df3E46...4de687490
0.00093335 ETH
55182922018-04-28 2:53:422161 days ago1524884022
0x67df3E46...4de687490
0.00093335 ETH
55182922018-04-28 2:53:422161 days ago1524884022
0x67df3E46...4de687490
0.01953332 ETH
55182922018-04-28 2:53:422161 days ago1524884022
0x67df3E46...4de687490
0.01953332 ETH
55182892018-04-28 2:52:592161 days ago1524883979
0x67df3E46...4de687490
0.00093335 ETH
55182842018-04-28 2:52:012161 days ago1524883921
0x67df3E46...4de687490
1 wei
55182842018-04-28 2:52:012161 days ago1524883921
0x67df3E46...4de687490
0.03826664 ETH
55182772018-04-28 2:48:162161 days ago1524883696
0x67df3E46...4de687490
0.00093335 ETH
55182462018-04-28 2:39:202161 days ago1524883160
0x67df3E46...4de687490
0.2 ETH
55182462018-04-28 2:39:202161 days ago1524883160
0x67df3E46...4de687490
0.2 ETH
55182462018-04-28 2:39:202161 days ago1524883160
0x67df3E46...4de687490
0.2 ETH
54991412018-04-24 19:42:402164 days ago1524598960
0x67df3E46...4de687490
1 wei
54991412018-04-24 19:42:402164 days ago1524598960
0x67df3E46...4de687490
0.39106664 ETH
54991372018-04-24 19:41:412164 days ago1524598901
0x67df3E46...4de687490
0.00093335 ETH
54756732018-04-20 18:47:222168 days ago1524250042
0x67df3E46...4de687490
1 wei
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dice

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

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

pragma solidity ^0.4.11;

//import "./oraclizeAPI_0.4.sol";
//import "github.com/oraclize/ethereum-api/oraclizeAPI.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);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
        if ((_nbytes == 0)||(_nbytes > 32)) throw;
	// Convert from seconds to ledger timer ticks
        _delay *= 10; 
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(_nbytes);
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes memory delay = new bytes(32);
        assembly { 
            mstore(add(delay, 0x20), _delay) 
        }
        
        bytes memory delay_bytes8 = new bytes(8);
        copyBytes(delay, 24, 8, delay_bytes8, 0);

        bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay];
        bytes32 queryId = oraclize_query("random", args, _customGasLimit);
        
        bytes memory delay_bytes8_left = new bytes(8);
        
        assembly {
            let x := mload(add(delay_bytes8, 0x20))
            mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000))

        }
        
        oraclize_randomDS_setCommitment(queryId, sha3(delay_bytes8_left, args[1], sha256(args[0]), args[2]));
        return queryId;
    }
    
    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }

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

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

        bytes32 sigr;
        bytes32 sigs;

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

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


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

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

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

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

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

        if (sigok == false) return false;


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

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

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

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

        return sigok;
    }

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

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

        _;
    }

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

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

        return 0;
    }

    function matchBytes32Prefix(bytes32 content, bytes prefix, uint n_random_bytes) internal returns (bool){
        bool match_ = true;
	
	if (prefix.length != n_random_bytes) throw;
	        
        for (uint256 i=0; i< n_random_bytes; i++) {
            if (content[i] != prefix[i]) match_ = false;
        }

        return match_;
    }

    function oraclize_randomDS_proofVerify__main(bytes proof, bytes32 queryId, bytes result, string context_name) internal returns (bool){

        // Step 2: the unique keyhash has to match with the sha256 of (context name + queryId)
        uint ledgerProofLength = 3+65+(uint(proof[3+65+1])+2)+32;
        bytes memory keyhash = new bytes(32);
        copyBytes(proof, ledgerProofLength, 32, keyhash, 0);
        if (!(sha3(keyhash) == sha3(sha256(context_name, queryId)))) return false;

        bytes memory sig1 = new bytes(uint(proof[ledgerProofLength+(32+8+1+32)+1])+2);
        copyBytes(proof, ledgerProofLength+(32+8+1+32), sig1.length, sig1, 0);

        // Step 3: we assume sig1 is valid (it will be verified during step 5) and we verify if 'result' is the prefix of sha256(sig1)
        if (!matchBytes32Prefix(sha256(sig1), result, uint(proof[ledgerProofLength+32+8]))) return false;

        // Step 4: commitment match verification, sha3(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8+1+32);
        copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0);

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

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


        // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32+8+1+32);
        copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0);
        if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) return false;

        // verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] == false){
            oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = oraclize_randomDS_proofVerify__sessionKeyValidity(proof, sig2offset);
        }

        return oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }


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

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

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

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

        return to;
    }

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

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

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

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

        return (ret, addr);
    }

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

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

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

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

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

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

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

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

}
// </ORACLIZE_API>


contract Dice is usingOraclize {

    //Definition of Constant======================================================================================================
    uint constant INVALID_BETPRICE_ID = 999999;//Invalid bet amount ID
    uint constant INVALID_BET_ID = 0;//Invalid bet ID

    //Bet Status
    uint constant BET_STATE_WAITPAIR = 0;//Wait for a challenger
    uint constant BET_STATE_WAITORACLIZE = 1;//Wait for the result
    uint constant BET_STATE_END = 2;//End successfully
    uint constant BET_STATE_CANCEL_BY_PLAYER = 3;//Canceled by the player
    uint constant BET_STATE_CANCEL_BY_OWNER = 4;//Canceled by the contract owner
    uint constant BET_STATE_CANCEL_BY_ORACLIZE_ERROR_RANDOM_NUMBER = 5;//Canceled due to random number not being verified
    uint constant BET_STATE_CANCEL_BY_ORACLIZE_ERROR_FEE = 6;//Canceled due to service fee is more than the bet amount
    uint constant BET_STATE_CANCEL_BY_RANDOM_NUMBER_A_EUQAL_B = 7;//Canceled due to ending in a draw

    
    //Variables of Contract Management===================================================================================================
    address public owner;//Contract Owner
    bool public isStopped;//Pause the Contract

    //Variables of Bet===================================================================================================
    //Definition of Bet Storage Structure
    struct Bet {
        uint betPrice;//Bet Amount
        uint betState;//Bet Status
        address playerAddressA;//Address of Player A
        address playerAddressB;//Address of Player B
        uint numberRolled;//Returned random numbers from Oraclize
        uint oraclizeFee;//Service fee of random number
    }

    uint public betFee = 200; //Bet Transaction Fee (10000 = 100%)
    uint[] public betPrices = [  200 finney , 500 finney, 1000 finney];//Bet Amount Option
    uint[] public waitPairBetIDs = [ INVALID_BET_ID , INVALID_BET_ID ,INVALID_BET_ID];//Current Bet ID that waiting for matching of each option
    uint public oraclizeCallbackGasLimit = 200000;//GasLimit of Oraclize
    Bet[] public bets ;//Save all bet data in chronological order
    mapping (bytes32 => uint) public oraclizeQueryID2BetID;// Mapping of random number query ID to Bet ID
    mapping (address => uint) public address2SendErrorValue;// Mapping of address to SendErrorValue

    //Event Notification======================================================================================================
    event LOG_ORACLIZE_CALLBACK(uint indexed betid , bytes32 _queryId, string _result, bytes _proof);
    event LOG_SEND_ERROR(uint indexed betid , address indexed player, uint value);
    event LOG_SET_SEND_ERROR_VALUE(address indexed player, uint value);

    //Constructor =====================================================================================================
    function Dice() {
        oraclize_setProof(proofType_Ledger); // sets the Ledger authenticity proof in the constructor
        owner = msg.sender;
        bets.push(Bet(0,0,address(0x0),address(0x0),0,0));//Bet 0 is invalid
    }

    //Function Modification=====================================================================================================
    modifier onlyIfNotStopped {
        if (isStopped) throw;
        _;
    }

    modifier onlyOwner {
        if (owner != msg.sender) throw;
        _;
    }

    modifier onlyBetCanCancel(uint betid) {
        if((bets[betid].betState != BET_STATE_WAITPAIR)&&
        (bets[betid].betState != BET_STATE_WAITORACLIZE)
        ) throw;//Cannot cancel
        _;
    }

    //Contract Management=====================================================================================================

    function stopContract() public
        onlyOwner {
        isStopped = true;
    }

    function resumeContract() public
        onlyOwner {
        isStopped = false;
    }

    function changeOwnerAddress(address newOwner) public
        onlyOwner {
        if (newOwner == address(0x0)) throw;
        owner = newOwner;
    }

    //Bet Management=====================================================================================================    
    function setBetFee(uint newfee) public
        onlyOwner
    {
        betFee = newfee;
    }

    function setOraclizeCallbackGasLimit(uint newgaslimit) public
        onlyOwner
    {
        oraclizeCallbackGasLimit = newgaslimit;
    }


    function setOraclizeCallbackGasPrice(uint newgasprice) public
		onlyOwner
	{
        oraclize_setCustomGasPrice(newgasprice);
    }     
    

    //Contract Owner withdraws the profit from the contract and sent to the specific account
    function getProfitToAddress(uint profit , address receiver) public
        onlyOwner
    {
        //Cannot withdraw the pending bets
        if(this.balance - profit < getBetWaitEndEther()) throw;

        receiver.transfer(profit);
    }

    //Withdraw all profit to the owner
    function getProfit() public
        onlyOwner
    {
        owner.transfer(this.balance - getBetWaitEndEther());
    }

    //Cancel all pending bets to modify the bet options
    function clearWaitPairBets() public
        onlyOwner
    {
        for( uint i = 0 ;i<waitPairBetIDs.length;i++){
            //Cancel all pending bets of this amount option
            while(waitPairBetIDs[i] != INVALID_BET_ID){
                cancelBetByOwner(waitPairBetIDs[i]);
            }
        }
    }


    function setBetPrices(uint[] newprices) public
        onlyOwner
    {
        //Set new amount option only while no bet pending
        uint i=0;
        for( ;i<waitPairBetIDs.length;i++){
            if(waitPairBetIDs[i] != INVALID_BET_ID)
                throw;
        }

        //Set new bet amount option
        betPrices = newprices;
        //Reset pending bet ID after setting up new bet amount option
        waitPairBetIDs = new uint[](betPrices.length);
        for(i = 0 ;i<waitPairBetIDs.length;i++){
            waitPairBetIDs[i] = INVALID_BET_ID;
        }
    }


    function setSendErrorValue(address player , uint value) public
        onlyOwner
    {
        address2SendErrorValue[player] = value;
        LOG_SET_SEND_ERROR_VALUE(player,value);
    }



    //Place the Bet=====================================================================================================
    
    function() public
        payable 
    {

        bet();
    }

    function bet() public
        payable
        onlyIfNotStopped 
    {
        //Verify the Bet
        uint betpriceid = getBetPriceID(msg.value);
        if(betpriceid != INVALID_BETPRICE_ID){
            //Verified; place the bet
            doBet(betpriceid);
        }else{
            //Refund If invalid bet and not from the contract owner; if it is from the contract owner, do not refund (for funding purpose)
            if (owner != msg.sender) throw;
        }
    }

    function doBet(uint betpriceid)
        private
    {


        //Start matching if there is pending bet that not from you
        uint waitpairbetid = waitPairBetIDs[betpriceid];
        if ((waitpairbetid != INVALID_BET_ID )&&(bets[waitpairbetid].playerAddressA != msg.sender)){

            bets[waitpairbetid].betState = BET_STATE_WAITORACLIZE;
            bets[waitpairbetid].playerAddressB = msg.sender;

            uint oraclizeFee = getOraclizePrice();
            if (oraclizeFee > msg.value ) {
                //Invalid if the service fee of random number is more than the bet amount; cancel the bet without deducting the commission
                cancelBet(waitpairbetid,false,BET_STATE_CANCEL_BY_ORACLIZE_ERROR_FEE);
            }else{
                //Random Number Query
                bytes32 oraclizeQueryID = oraclize_newRandomDSQuery(0, 2, oraclizeCallbackGasLimit); // this function internally generates the correct oraclize_query and returns its queryId
                oraclizeQueryID2BetID[ oraclizeQueryID ] = waitpairbetid;//Save the mapping of Query ID to Bet ID
                bets[waitpairbetid].oraclizeFee = oraclizeFee;

                //Update waitPairBetIDs
                findNextwaitPairBetIDs(betpriceid , waitpairbetid);
            }
        }else {
            //Generate New Bet
            bets.push( Bet(
                msg.value,//Bet Amount
                BET_STATE_WAITPAIR,//Bet Status
                msg.sender,//Address of Player A
                address(0x0),//Address of Player B
                0,//Random Number
                0//Service Fee of Random Number Query
            ));

            //Update waitPairBetIDs    
            if (waitpairbetid == INVALID_BET_ID )
                waitPairBetIDs[betpriceid] = bets.length - 1;
                        
        }

    }



    function getBetPriceID(uint sendvalue)
        private
        returns (uint)
    {
        for(uint i = 0;i < betPrices.length;i++){
            if(betPrices[i]==sendvalue)
                return i;
        }
        return INVALID_BETPRICE_ID;
    }

    function findNextwaitPairBetIDs(uint betpriceid,uint betid)
        private
    {

        for(uint i = betid+1 ; i< bets.length ; i++){
            if( ( bets[i].betPrice == betPrices[betpriceid])&&(bets[i].betState == BET_STATE_WAITPAIR)){
                waitPairBetIDs[betpriceid] = i;
                return;
            }
        }

        //No new pending bet
        waitPairBetIDs[betpriceid] = INVALID_BET_ID;
    }


    //Callback of Oraclize Random Number=========================================================================================
    function __callback(bytes32 _queryId, string _result, bytes _proof) public
    { 
        //Only Oraclize can use callback
        if (msg.sender != oraclize_cbAddress()) throw;

        uint betid = oraclizeQueryID2BetID[_queryId];

        //Verify the Bet
        if(bets[betid].playerAddressA == address(0x0)) throw;
        if(bets[betid].playerAddressB == address(0x0)) throw;
        if(bets[betid].betState != BET_STATE_WAITORACLIZE) throw;

        //Record the log of Oraclize callback data
        LOG_ORACLIZE_CALLBACK(betid,_queryId,_result,_proof);

        if ( oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0) {
            //Invalid random number; cancel the bet and deduct the service fee
            cancelBet(betid,false,BET_STATE_CANCEL_BY_ORACLIZE_ERROR_RANDOM_NUMBER);
        } else {
            // the proof verification has passed
            uint maxRange = 2**(8 * 2); // this is the highest uint we want to get. It should never be greater than 2^(8*N), where N is the number of random bytes we had asked the datasource to return
            uint randomNumber = uint(sha3(_result)) % maxRange; // this is an efficient way to get the uint out in the [0, maxRange] range
            
            //The left 8 digits is A’s result and the right 8 digits is B’s result
            //The bigger number wins; equal means a draw
            uint randomA = randomNumber >> 8;
            uint randomB = randomNumber & 0x00FF;
            
            //Save Bet Result
            bets[betid].numberRolled = randomNumber;

            //Send Prize
            //Prize = Bet Amount - Transaction Fee - Service Fee
            uint winAmount = 2 * bets[betid].betPrice  -  2 * ( bets[betid].betPrice * betFee / 10000 ) - bets[betid].oraclizeFee;
            bool senderror = false;
            if(randomA == randomB){
                //A game ended in a draw will deduct the commission
                cancelBet(betid,true,BET_STATE_CANCEL_BY_RANDOM_NUMBER_A_EUQAL_B);                
            }else{
                address win;
                address lose;
                if(randomA > randomB){
                    win = bets[betid].playerAddressA;
                    lose = bets[betid].playerAddressB;
                }else{
                    win = bets[betid].playerAddressB;
                    lose = bets[betid].playerAddressA;
                }

                //Send coin to the winner
                if(!win.send(winAmount)){
                    //Failed to send coin
                    address2SendErrorValue[win] += winAmount;
                    LOG_SEND_ERROR(betid,win,winAmount);
                }

                //Send coin to the loser
                if(!lose.send(1)){
                    //Failed to send coin
                    address2SendErrorValue[lose] += 1;
                    LOG_SEND_ERROR(betid,lose,1);                    
                }
                
                //Successfully ended
                bets[betid].betState = BET_STATE_END;
            }
        }
    }

    

    //Cancel the Bet=====================================================================================================
    //Player cancels the bet
    function cancelBetByPlayer(uint betid) public
            onlyBetCanCancel(betid)  
    {                
        if (bets[betid].playerAddressA == msg.sender) 
            cancelBetByA(betid);
        else if (bets[betid].playerAddressB == msg.sender)
            cancelBetByB(betid);
        else
            throw;
    }

    function cancelBetByA(uint betid)
        private
    {
        if(bets[betid].playerAddressB != address(0x0)){
            //If there is a Player B, the Player B turns into a Player A and waits for the matching
            bets[betid].playerAddressA = bets[betid].playerAddressB;
            bets[betid].playerAddressB = address(0x0);
            bets[betid].betState = BET_STATE_WAITPAIR;
            //Update waitPairBetIDs    
            uint betpriceid = getBetPriceID(bets[betid].betPrice);
            waitPairBetIDs[betpriceid] = betid;
        }else{
            //if there is no Player B, cancel the bet and update waitPairBetIDs
            bets[betid].betState = BET_STATE_CANCEL_BY_PLAYER;
            refreshWaitPairBetIDsByCancelBet(betid);
        }

        //Refund to Player A
        sendCancelValue(bets[betid].playerAddressA ,betid,false);


    }

    function cancelBetByB(uint betid)
        private
    {
        //If Player B cancels the bet, Player A restarts the waiting of the matching
        bets[betid].playerAddressB = address(0x0);
        bets[betid].betState = BET_STATE_WAITPAIR;
        //Update waitPairBetIDs
        uint betpriceid = getBetPriceID(bets[betid].betPrice);
        waitPairBetIDs[betpriceid] = betid;

        //Refund to Player B
        sendCancelValue(bets[betid].playerAddressB ,betid,false);
    }

    function cancelBetByOwner(uint betid) public
        onlyOwner
    {
        //Cancel the bet and update pending Bet IDs
        cancelBet(betid,false,BET_STATE_CANCEL_BY_OWNER);
    }

    function cancelBet(uint betid,bool fee,uint betstate)
        private
        onlyBetCanCancel(betid)        
    {

        //Cancel Player A
        sendCancelValue(bets[betid].playerAddressA ,betid,fee);

        //Cancel Player B if there is one
        if(bets[betid].playerAddressB != address(0x0)){
            sendCancelValue(bets[betid].playerAddressB ,betid,fee);
        }

        bets[betid].betState = betstate;

        //Update waitPairBetIDs
        refreshWaitPairBetIDsByCancelBet(betid);
    }

    function refreshWaitPairBetIDsByCancelBet(uint betid)
        private
    {
        for( uint i = 0 ;i<waitPairBetIDs.length;i++){
            if(waitPairBetIDs[i] == betid){                
                findNextwaitPairBetIDs(i , betid);
                break;
            }
        }
    }

    function sendCancelValue(address receiver,uint betid,bool fee)
        private
    {
        //Refund = Bet Amount – Transaction Fee – Service Fee
        uint cancelAmount = bets[betid].betPrice  -  bets[betid].betPrice * (fee ? betFee : 0) / 10000 - bets[betid].oraclizeFee / 2;
        if(!receiver.send(cancelAmount)){
            address2SendErrorValue[receiver] += cancelAmount;
            LOG_SEND_ERROR(betid,receiver,cancelAmount);            
        }

    }

    //Auxiliary Function of Contract Query=======================================================================================================
    //Get Bet Info
    function getBets(uint start , uint length) public
        constant
        returns(uint[])
    {   
        //Verify the Parameter
        if(start >= bets.length) throw;      
        if(length == 0) throw;  

        if(start+length > bets.length)
            length = bets.length - start;

        uint[] memory result = new uint[](length*6);
        for (uint i = 0; i < length; i++){
            result[i*6] = bets[start+i].betPrice;
	    result[i*6+1] = bets[start+i].betState;
	    result[i*6+2] = uint(bets[start+i].playerAddressA);
	    result[i*6+3] = uint(bets[start+i].playerAddressB);
	    result[i*6+4] = bets[start+i].numberRolled;
	    result[i*6+5] = bets[start+i].oraclizeFee;
	}
        return result;
    }

    function getBetsLength() public
        constant
        returns(uint)
    {
        return bets.length;
    }

    //Get the amount of pending bets
    function getBetWaitEndEther() public
        constant
        returns(uint result)
    {
        for(uint i=1; i < bets.length ; i++){
            if(  bets[i].betState == BET_STATE_WAITPAIR  ){
                result += bets[i].betPrice;
            }else if ( bets[i].betState == BET_STATE_WAITORACLIZE ){
                result += bets[i].betPrice * 2;                
            }
        }

        return result;

    }    

    //Get Service Fee of Random Number
    function getOraclizePrice() public
        constant
        returns (uint)
    {
        return oraclize_getPrice("random", oraclizeCallbackGasLimit);
    }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[],"name":"bet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"stopContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"bets","outputs":[{"name":"betPrice","type":"uint256"},{"name":"betState","type":"uint256"},{"name":"playerAddressA","type":"address"},{"name":"playerAddressB","type":"address"},{"name":"numberRolled","type":"uint256"},{"name":"oraclizeFee","type":"uint256"}],"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":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isStopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newgasprice","type":"uint256"}],"name":"setOraclizeCallbackGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"address2SendErrorValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"betPrices","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"player","type":"address"},{"name":"value","type":"uint256"}],"name":"setSendErrorValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"clearWaitPairBets","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"betid","type":"uint256"}],"name":"cancelBetByOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getProfit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newfee","type":"uint256"}],"name":"setBetFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"betid","type":"uint256"}],"name":"cancelBetByPlayer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"betFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"changeOwnerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getOraclizePrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"waitPairBetIDs","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"profit","type":"uint256"},{"name":"receiver","type":"address"}],"name":"getProfitToAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getBetWaitEndEther","outputs":[{"name":"result","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"resumeContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getBetsLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newgaslimit","type":"uint256"}],"name":"setOraclizeCallbackGasLimit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"start","type":"uint256"},{"name":"length","type":"uint256"}],"name":"getBets","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oraclizeCallbackGasLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newprices","type":"uint256[]"}],"name":"setBetPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"oraclizeQueryID2BetID","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"betid","type":"uint256"},{"indexed":false,"name":"_queryId","type":"bytes32"},{"indexed":false,"name":"_result","type":"string"},{"indexed":false,"name":"_proof","type":"bytes"}],"name":"LOG_ORACLIZE_CALLBACK","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"betid","type":"uint256"},{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"LOG_SEND_ERROR","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"player","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"LOG_SET_SEND_ERROR_VALUE","type":"event"}]

606060405260c8600655606060405190810160409081526702c68af0bb14000082526706f05b59d3b200006020830152670de0b6b3a7640000908201526200004c906007906003620007df565b5060606040519081016040908152600080835260208301819052908201526200007a9060089060036200083b565b5062030d4060095534156200008e57600080fd5b620000c77f300000000000000000000000000000000000000000000000000000000000000064010000000062004518620001b482021704565b60058054600160a060020a03191633600160a060020a0316179055600a805460018101620000f6838262000879565b9160005260206000209060060201600060c06040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a082015291905081518155602082015181600101556040820151600282018054600160a060020a031916600160a060020a03929092169190911790556060820151600382018054600160a060020a031916600160a060020a03929092169190911790556080820151816004015560a0820151816005015550505062000990565b600054600160a060020a03161580620001ef5750600054620001ed90600160a060020a0316640100000000620026e1620003e082021704565b155b1562000211576200020f6000640100000000620026e5620003e482021704565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156200027457600080fd5b6102c65a03f115156200028657600080fd5b5050506040518051600154600160a060020a039081169116149050620003455760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156200030957600080fd5b6102c65a03f115156200031b57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663688dcfd7826040517c010000000000000000000000000000000000000000000000000000000063ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b1515620003c857600080fd5b6102c65a03f11515620003da57600080fd5b50505050565b3b90565b60008062000414731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed640100000000620026e1620003e082021704565b1115620004965760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed1790556200048d60408051908101604052600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015264010000000062003593620007c682021704565b506001620007c1565b6000620004c573c03a2615d5efaf5f49f60b7bb6583eaec212fdf1640100000000620026e1620003e082021704565b11156200053e5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf11790556200048d60408051908101604052600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015264010000000062003593620007c682021704565b60006200056d73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e640100000000620026e1620003e082021704565b1115620005e65760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556200048d60408051908101604052600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015264010000000062003593620007c682021704565b60006200061573146500cfd35b22e4a392fe0adc06de1a1368ed48640100000000620026e1620003e082021704565b11156200068e5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed481790556200048d60408051908101604052600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015264010000000062003593620007c682021704565b6000620006bd736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475640100000000620026e1620003e082021704565b1115620006f3575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001620007c1565b6000620007227320e12a1f859b3feae5fb2a0a32c18f5a65555bbf640100000000620026e1620003e082021704565b111562000758575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001620007c1565b6000620007877351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa640100000000620026e1620003e082021704565b1115620007bd575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001620007c1565b5060005b919050565b6002818051620007db929160200190620008ad565b5050565b82805482825590600052602060002090810192821562000829579160200282015b8281111562000829578251829067ffffffffffffffff1690559160200191906001019062000800565b50620008379291506200091f565b5090565b82805482825590600052602060002090810192821562000829579160200282015b82811115620008295782518255916020019190600101906200085c565b815481835581811511620008a857600602816006028360005260206000209182019101620008a891906200093f565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620008f057805160ff191683800117855562000829565b82800160010185558215620008295791820182811115620008295782518255916020019190600101906200085c565b6200093c91905b8082111562000837576000815560010162000926565b90565b6200093c91905b808211156200083757600080825560018201819055600282018054600160a060020a0319908116909155600383018054909116905560048201819055600582015560060162000946565b6146e580620009a06000396000f30060606040526004361061015b5763ffffffff60e060020a60003504166311610c25811461015b57806312253a6c1461016557806322af00fa1461017857806327dc297e146101eb57806338bbfa50146102415780633f683b6a146102d9578063410a68b51461030057806355e56744146103165780635ad7a05a146103475780635ca3bf761461035d57806363ab7a251461037f578063669cab3914610392578063679dffb4146103a857806372229abf146103bb5780637ea2fc89146103d1578063841e6ce9146103e757806385eac05f146103fa5780638da5cb5b146104195780638f6f611514610448578063917179cb1461045b578063a737ecc914610471578063b3487a7114610493578063c4bc5da5146104a6578063cc4580c8146104b9578063d3b5695c146104cc578063e1287520146104e2578063e14ca10e1461054e578063ea6a49ea14610561578063f824d5b4146105b0575b6101636105c6565b005b341561017057600080fd5b610163610632565b341561018357600080fd5b61018e600435610684565b6040518087815260200186815260200185600160a060020a0316600160a060020a0316815260200184600160a060020a0316600160a060020a03168152602001838152602001828152602001965050505050505060405180910390f35b34156101f657600080fd5b610163600480359060446024803590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506106d795505050505050565b341561024c57600080fd5b610163600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061070995505050505050565b34156102e457600080fd5b6102ec610c5c565b604051901515815260200160405180910390f35b341561030b57600080fd5b610163600435610c7d565b341561032157600080fd5b610335600160a060020a0360043516610ca1565b60405190815260200160405180910390f35b341561035257600080fd5b610335600435610cb3565b341561036857600080fd5b610163600160a060020a0360043516602435610cd2565b341561038a57600080fd5b610163610d41565b341561039d57600080fd5b610163600435610dc0565b34156103b357600080fd5b610163610de8565b34156103c657600080fd5b610163600435610e4d565b34156103dc57600080fd5b610163600435610e6d565b34156103f257600080fd5b610335610f5e565b341561040557600080fd5b610163600160a060020a0360043516610f64565b341561042457600080fd5b61042c610fb6565b604051600160a060020a03909116815260200160405180910390f35b341561045357600080fd5b610335610fc5565b341561046657600080fd5b61033560043561100c565b341561047c57600080fd5b610163600435600160a060020a036024351661101a565b341561049e57600080fd5b610335611086565b34156104b157600080fd5b610163611144565b34156104c457600080fd5b61033561117f565b34156104d757600080fd5b610163600435611185565b34156104ed57600080fd5b6104fb6004356024356111a5565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561053a578082015183820152602001610522565b505050509050019250505060405180910390f35b341561055957600080fd5b6103356113b1565b341561056c57600080fd5b61016360046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506113b795505050505050565b34156105bb57600080fd5b61033560043561148f565b60055460009074010000000000000000000000000000000000000000900460ff16156105f157600080fd5b6105fa346114a1565b9050620f423f81146106145761060f816114ee565b61062f565b60055433600160a060020a0390811691161461062f57600080fd5b50565b60055433600160a060020a0390811691161461064d57600080fd5b6005805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b600a80548290811061069257fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501549395509193600160a060020a0391821693929091169186565b610705828260006040518059106106eb5750595b818152601f19601f83011681016020016040529050610709565b5050565b600080600080600080600080600061071f611753565b600160a060020a031633600160a060020a031614151561073e57600080fd5b60008c8152600b6020526040812054600a8054919b50908b90811061075f57fe5b6000918252602090912060026006909202010154600160a060020a0316141561078757600080fd5b600a8054600091908b90811061079957fe5b6000918252602090912060036006909202010154600160a060020a031614156107c157600080fd5b6001600a8a8154811015156107d257fe5b9060005260206000209060060201600101541415156107f057600080fd5b887fafe94ea43d7767bcbd461eca211fcd3ae4289d39e0866cfb55b5cb35817a37708d8d8d604051838152606060208201818152906040830190830185818151815260200191508051906020019080838360005b8381101561085c578082015183820152602001610844565b50505050905090810190601f1680156108895780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156108bf5780820151838201526020016108a7565b50505050905090810190601f1680156108ec5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a26109078c8c8c6118f3565b60ff16156109215761091c8960006005611a1b565b610c4e565b620100009750878b6040518082805190602001908083835b602083106109585780518252601f199092019160209182019101610939565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902081151561098e57fe5b600a80549290910698506101008904975060ff8916965088918b9081106109b157fe5b6000918252602090912060046006909202010155600a80548a9081106109d357fe5b906000526020600020906006020160050154612710600654600a8c8154811015156109fa57fe5b90600052602060002090600602016000015402811515610a1657fe5b04600202600a8b815481101515610a2957fe5b906000526020600020906006020160000154600202030393506000925084861415610a5b5761091c8960016007611a1b565b84861115610ac557600a80548a908110610a7157fe5b6000918252602090912060026006909202010154600a8054600160a060020a039092169350908a908110610aa157fe5b6000918252602090912060036006909202010154600160a060020a03169050610b23565b600a80548a908110610ad357fe5b6000918252602090912060036006909202010154600a8054600160a060020a039092169350908a908110610b0357fe5b6000918252602090912060026006909202010154600160a060020a031690505b600160a060020a03821684156108fc0285604051600060405180830381858888f193505050501515610ba557600160a060020a0382166000818152600c6020526040908190208054870190558a907fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a6529087905190815260200160405180910390a35b600160a060020a03811660006001604051600060405180830381858888f193505050501515610c2757600160a060020a0381166000818152600c602052604090819020805460019081019091558b917fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a65291905190815260200160405180910390a35b6002600a8a815481101515610c3857fe5b9060005260206000209060060201600101819055505b505050505050505050505050565b60055474010000000000000000000000000000000000000000900460ff1681565b60055433600160a060020a03908116911614610c9857600080fd5b61062f81611b46565b600c6020526000908152604090205481565b6007805482908110610cc157fe5b600091825260209091200154905081565b60055433600160a060020a03908116911614610ced57600080fd5b600160a060020a0382166000818152600c6020526040908190208390557f09c8dd3739ace289687f47d46672aedf36616326e99448282b99014389d2bfff9083905190815260200160405180910390a25050565b60055460009033600160a060020a03908116911614610d5f57600080fd5b5060005b60085481101561062f575b6000600882815481101515610d7f57fe5b60009182526020909120015414610db857610db3600882815481101515610da257fe5b906000526020600020900154610dc0565b610d6e565b600101610d63565b60055433600160a060020a03908116911614610ddb57600080fd5b61062f8160006004611a1b565b60055433600160a060020a03908116911614610e0357600080fd5b600554600160a060020a03166108fc610e1a611086565b30600160a060020a031631039081150290604051600060405180830381858888f193505050501515610e4b57600080fd5b565b60055433600160a060020a03908116911614610e6857600080fd5b600655565b806000600a82815481101515610e7f57fe5b90600052602060002090600602016001015414158015610ec057506001600a82815481101515610eab57fe5b90600052602060002090600602016001015414155b15610eca57600080fd5b33600160a060020a0316600a83815481101515610ee357fe5b6000918252602090912060026006909202010154600160a060020a03161415610f1457610f0f82611cd7565b610705565b33600160a060020a0316600a83815481101515610f2d57fe5b6000918252602090912060036006909202010154600160a060020a03161415610f5957610f0f82611e8e565b600080fd5b60065481565b60055433600160a060020a03908116911614610f7f57600080fd5b600160a060020a0381161515610f9457600080fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600554600160a060020a031681565b600061100660408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152600954611f5c565b90505b90565b6008805482908110610cc157fe5b60055433600160a060020a0390811691161461103557600080fd5b61103d611086565b8230600160a060020a03163103101561105557600080fd5b600160a060020a03811682156108fc0283604051600060405180830381858888f19350505050151561070557600080fd5b600060015b600a54811015611140576000600a828154811015156110a657fe5b90600052602060002090600602016001015414156110e757600a8054829081106110cc57fe5b90600052602060002090600602016000015482019150611138565b6001600a828154811015156110f857fe5b906000526020600020906006020160010154141561113857600a80548290811061111e57fe5b906000526020600020906006020160000154600202820191505b60010161108b565b5090565b60055433600160a060020a0390811691161461115f57600080fd5b6005805474ff000000000000000000000000000000000000000019169055565b600a5490565b60055433600160a060020a039081169116146111a057600080fd5b600955565b6111ad614391565b6111b5614391565b600a5460009085106111c657600080fd5b8315156111d257600080fd5b600a5485850111156111e757600a5485900393505b836006026040518059106111f85750595b90808252806020026020018201604052509150600090505b838110156113a957600a805486830190811061122857fe5b90600052602060002090600602016000015482826006028151811061124957fe5b60209081029091010152600a805486830190811061126357fe5b90600052602060002090600602016001015482826006026001018151811061128757fe5b60209081029091010152600a80548683019081106112a157fe5b60009182526020909120600691820201600290810154600160a060020a031691849190840201815181106112d157fe5b60209081029091010152600a80548683019081106112eb57fe5b60009182526020909120600691820201600390810154600160a060020a0316918491908402018151811061131b57fe5b60209081029091010152600a805486830190811061133557fe5b90600052602060002090600602016004015482826006026004018151811061135957fe5b60209081029091010152600a805486830190811061137357fe5b90600052602060002090600602016005015482826006026005018151811061139757fe5b60209081029091010152600101611210565b509392505050565b60095481565b60055460009033600160a060020a039081169116146113d557600080fd5b5060005b6008548110156114125760006008828154811015156113f457fe5b6000918252602090912001541461140a57600080fd5b6001016113d9565b60078280516114259291602001906143a3565b506007546040518059106114365750595b9080825280602002602001820160405250600890805161145a9291602001906143a3565b50600090505b60085481101561070557600060088281548110151561147b57fe5b600091825260209091200155600101611460565b600b6020526000908152604090205481565b6000805b6007548110156114e157826007828154811015156114bf57fe5b90600052602060002090015414156114d9578091506114e8565b6001016114a5565b620f423f91505b50919050565b600080600060088481548110151561150257fe5b906000526020600020900154925060008314158015611555575033600160a060020a0316600a8481548110151561153557fe5b6000918252602090912060026006909202010154600160a060020a031614155b15611640576001600a8481548110151561156b57fe5b90600052602060002090600602016001018190555033600a8481548110151561159057fe5b906000526020600020906006020160030160006101000a815481600160a060020a030219169083600160a060020a031602179055506115cd610fc5565b9150348211156115e9576115e48360006006611a1b565b61163b565b6115f860006002600954612173565b6000818152600b60205260409020849055600a805491925083918590811061161c57fe5b90600052602060002090600602016005018190555061163b8484612619565b61174d565b600a80546001810161165283826143ea565b9160005260206000209060060201600060c0604051908101604052803481526020016000815260200133600160a060020a031681526020016000600160a060020a03168152602001600081526020016000815250909190915060008201518155602082015181600101556040820151600282018054600160a060020a031916600160a060020a03929092169190911790556060820151600382018054600160a060020a031916600160a060020a03929092169190911790556080820151816004015560a0820151600590910155505082151561174d57600a5460088054600019909201918690811061174057fe5b6000918252602090912001555b50505050565b60008054600160a060020a0316158061177e575060005461177c90600160a060020a03166126e1565b155b1561178f5761178d60006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156117d857600080fd5b6102c65a03f115156117e957600080fd5b5050506040518051600154600160a060020a03908116911614905061188c5760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561185157600080fd5b6102c65a03f1151561186257600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156118d457600080fd5b6102c65a03f115156118e557600080fd5b505050604051805191505090565b6000808260008151811061190357fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c0000000000000000000000000000000000000000000000000000000000000014158061199557508260018151811061195557fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b806119dd5750826002815181106119a857fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b156119eb57600191506113a9565b6119fe8386866119f9612a0c565b612ab4565b9050801515611a1057600291506113a9565b506000949350505050565b826000600a82815481101515611a2d57fe5b90600052602060002090600602016001015414158015611a6e57506001600a82815481101515611a5957fe5b90600052602060002090600602016001015414155b15611a7857600080fd5b611aae600a85815481101515611a8a57fe5b6000918252602090912060026006909202010154600160a060020a03168585613042565b600a80546000919086908110611ac057fe5b6000918252602090912060036006909202010154600160a060020a031614611b1857611b18600a85815481101515611af457fe5b6000918252602090912060036006909202010154600160a060020a03168585613042565b81600a85815481101515611b2857fe5b90600052602060002090600602016001018190555061174d8461315a565b600054600160a060020a03161580611b705750600054611b6e90600160a060020a03166126e1565b155b15611b8157611b7f60006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611bca57600080fd5b6102c65a03f11515611bdb57600080fd5b5050506040518051600154600160a060020a039081169116149050611c7e5760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c4357600080fd5b6102c65a03f11515611c5457600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b1515611cc657600080fd5b6102c65a03f1151561174d57600080fd5b600a8054600091829184908110611cea57fe5b6000918252602090912060036006909202010154600160a060020a031614611e2957600a805483908110611d1a57fe5b6000918252602090912060036006909202010154600a8054600160a060020a039092169184908110611d4857fe5b600091825260208220600691909102016002018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611d8857fe5b600091825260208220600691909102016003018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611dc857fe5b906000526020600020906006020160010181905550611e06600a83815481101515611def57fe5b9060005260206000209060060201600001546114a1565b905081600882815481101515611e1857fe5b600091825260209091200155611e58565b6003600a83815481101515611e3a57fe5b906000526020600020906006020160010181905550611e588261315a565b610705600a83815481101515611e6a57fe5b60009182526020822060026006909202010154600160a060020a0316908490613042565b600080600a83815481101515611ea057fe5b600091825260208220600691909102016003018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611ee057fe5b906000526020600020906006020160010181905550611f07600a83815481101515611def57fe5b905081600882815481101515611f1957fe5b600091825260209091200155600a8054610705919084908110611f3857fe5b60009182526020822060036006909202010154600160a060020a0316908490613042565b60008054600160a060020a03161580611f875750600054611f8590600160a060020a03166126e1565b155b15611f9857611f9660006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611fe157600080fd5b6102c65a03f11515611ff257600080fd5b5050506040518051600154600160a060020a0390811691161490506120955760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561205a57600080fd5b6102c65a03f1151561206b57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a0316632ef3accc84846000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156121065780820151838201526020016120ee565b50505050905090810190601f1680156121335780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561215257600080fd5b6102c65a03f1151561216357600080fd5b5050506040518051949350505050565b600061217d614391565b612185614391565b61218d614391565b6000612197614391565b61219f614391565b6121a7614416565b60006121b1614391565b8b15806121be575060208c115b156121c857600080fd5b600a8d029c5060016040518059106121dd5750595b818152601f19601f8301168101602001604052905098508b60f860020a028960008151811061220857fe5b906020010190600160f860020a031916908160001a905350602060405180591061222f5750595b818152601f19601f83011681016020016040529050975060206040518059106122555750595b818152601f19601f83011681016020016040529050965061227461319b565b95506020885242411860014303401860208901526020875285602088015260206040518059106122a15750595b818152601f19601f8301168101602001604052905094508c602086015260086040518059106122cd5750595b818152601f19601f8301168101602001604052905093506122f4856018600887600061331c565b506080604051908101604052808981526020018a815260200188815260200186815250925061235760408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848d613371565b915060086040518059106123685750595b8181526020601f909201601f191681018201604052915084015160f860020a810460278301537e01000000000000000000000000000000000000000000000000000000000000810460268301537d0100000000000000000000000000000000000000000000000000000000008104602583015360e060020a810460248301537b01000000000000000000000000000000000000000000000000000000810460238301537a01000000000000000000000000000000000000000000000000000081046022830153790100000000000000000000000000000000000000000000000000810460218301537801000000000000000000000000000000000000000000000000810460208301535061260982826020860151600287516000604051602001526040518082805190602001908083835b602083106124b85780518252601f199092019160209182019101612499565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156124fa57600080fd5b50506040518051905060408801516040518085805190602001908083835b602083106125375780518252601f199092019160209182019101612518565b6001836020036101000a038019825116818451161790925250505091909101905084805190602001908083835b602083106125835780518252601f199092019160209182019101612564565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106125d55780518252601f1990920191602091820191016125b6565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020613581565b509b9a5050505050505050505050565b600181015b600a548110156126be57600780548490811061263657fe5b906000526020600020900154600a8281548110151561265157fe5b90600052602060002090600602016000015414801561269057506000600a8281548110151561267c57fe5b906000526020600020906006020160010154145b156126b657806008848154811015156126a557fe5b6000918252602090912001556126dc565b60010161261e565b60006008848154811015156126cf57fe5b6000918252602090912001555b505050565b3b90565b600080612705731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6126e1565b11156127755760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905561276d60408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152613593565b506001612a07565b600061279473c03a2615d5efaf5f49f60b7bb6583eaec212fdf16126e1565b11156127fc5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905561276d60408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152613593565b600061281b73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6126e1565b11156128835760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905561276d60408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152613593565b60006128a273146500cfd35b22e4a392fe0adc06de1a1368ed486126e1565b111561290a5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905561276d60408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152613593565b6000612929736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756126e1565b111561295d575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001612a07565b600061297c7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6126e1565b11156129b0575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001612a07565b60006129cf7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6126e1565b1115612a03575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001612a07565b5060005b919050565b612a14614391565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612aaa5780601f10612a7f57610100808354040283529160200191612aaa565b820191906000526020600020905b815481529060010190602001808311612a8d57829003601f168201915b5050505050905090565b600080612abf614391565b612ac7614391565b612acf614391565b612ad7614391565b600080612ae2614391565b8c604581518110612aef57fe5b016020015160f860020a9081900481020460660197506020604051805910612b145750595b818152601f19601f830116810160200160405290509650612b3a8d8960208a600061331c565b5060028a8d6000604051602001526040518083805190602001908083835b60208310612b775780518252601f199092019160209182019101612b58565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f11515612bbd57600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b60208310612c085780518252601f199092019160209182019101612be9565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902014612c435760009850613032565b8c604a890181518110612c5257fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910612c7b5750595b818152601f19601f830116810160200160405290509550612ca48d89604901885189600061331c565b50612d5c6002876000604051602001526040518082805190602001908083835b60208310612ce35780518252601f199092019160209182019101612cc4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612d2557600080fd5b5050604051805190508c8f60288c0181518110612d3e57fe5b016020015160f860020a900460f860020a0260f860020a90046135a6565b1515612d6b5760009850613032565b6029604051805910612d7a5750595b818152601f19601f830116810160200160405290509450612da38d89602001602988600061331c565b5060408051805910612db25750595b818152601f19601f830116810160200160405290509350855188602001602901016041019250612dea8d60408503604087600061331c565b506002846000604051602001526040518082805190602001908083835b60208310612e265780518252601f199092019160209182019101612e07565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612e6857600080fd5b505060405180519050915084826040518083805190602001908083835b60208310612ea45780518252601f199092019160209182019101612e85565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008d8152600360205260409020541415612eff5760008c815260036020526040812055612f08565b60009850613032565b6049604051805910612f175750595b818152601f19601f830116810160200160405290509050612f3d8d89604984600061331c565b50612fce6002826000604051602001526040518082805190602001908083835b60208310612f7c5780518252601f199092019160209182019101612f5d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612fbe57600080fd5b505060405180519050878661362c565b1515612fdd5760009850613032565b60008281526004602052604090205460ff16151561301d57612fff8d84613845565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1698505b5050505050505050949350505050565b60006002600a8481548110151561305557fe5b90600052602060002090600602016005015481151561307057fe5b0461271083613080576000613084565b6006545b600a80548790811061309257fe5b906000526020600020906006020160000154028115156130ae57fe5b04600a858154811015156130be57fe5b600091825260209091206006909102015403039050600160a060020a03841681156108fc0282604051600060405180830381858888f19350505050151561174d57600160a060020a0384166000818152600c60205260409081902080548401905584907fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a6529084905190815260200160405180910390a350505050565b60005b600854811015610705578160088281548110151561317757fe5b906000526020600020900154141561319357610f0f8183612619565b60010161315d565b60008054600160a060020a031615806131c657506000546131c490600160a060020a03166126e1565b155b156131d7576131d560006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561322057600080fd5b6102c65a03f1151561323157600080fd5b5050506040518051600154600160a060020a0390811691161490506132d45760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561329957600080fd5b6102c65a03f115156132aa57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156118d457600080fd5b613324614391565b838201600080828651101561333857600080fd5b505060208087019084015b86886020010182101561336457818901518682015260209182019101613343565b5093979650505050505050565b600061337b614391565b600054600160a060020a031615806133a557506000546133a390600160a060020a03166126e1565b155b156133b6576133b460006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156133ff57600080fd5b6102c65a03f1151561341057600080fd5b5050506040518051600154600160a060020a0390811691161490506134b35760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561347857600080fd5b6102c65a03f1151561348957600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b60046040518059106134c25750595b9080825280602002602001820160405280156134f857816020015b6134e5614391565b8152602001906001900390816134dd5790505b50905083518160008151811061350a57fe5b6020908102909101015283600160200201518160018151811061352957fe5b602090810291909101015260408401518160028151811061354657fe5b602090810291909101015260608401518160038151811061356357fe5b60209081029091010152613578858285613c41565b95945050505050565b60009182526003602052604090912055565b6002818051610705929160200190614443565b6000600181838551146135b857600080fd5b5060005b8381101561361f578481815181106135d057fe5b016020015160f860020a900460f860020a02600160f860020a03191686826020811015156135fa57fe5b1a60f860020a02600160f860020a03191614151561361757600091505b6001016135bc565b8192505b50509392505050565b600080600080600061363c614391565b6000613646614391565b60206040518059106136555750595b8181526020601f909201601f19168101820160405293508a60038151811061367957fe5b016020015160f860020a900460f860020a0260f860020a90040360040191506136a78a83602086600061331c565b925060206040518059106136b85750595b818152601f19601f8301168101602001604052905090506022820191506137108a60208c60018603815181106136ea57fe5b016020015160f860020a900460f860020a0260f860020a9004038401602084600061331c565b9050602083015194506020810151935061372d8b601b8787613fda565b9097509550600160a060020a038616896040518082805190602001908083835b6020831061376c5780518252601f19909201916020918201910161374d565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a031614156137b15760019750613837565b6137be8b601c8787613fda565b9097509550600160a060020a038616896040518082805190602001908083835b602083106137fd5780518252601f1990920191602091820191016137de565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b600080613850614391565b613858614391565b613860614391565b613868614391565b613870614391565b613878614391565b613880614391565b8a8a6001018151811061388f57fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106138b85750595b818152601f19601f8301168101602001604052905096506138de8b8b89518a600061331c565b50604080518059106138ed5750595b818152601f19601f8301168101602001604052905095506139148b6004604089600061331c565b5060626040518059106139245750595b818152601f19601f83011681016020016040529050945060f860020a8560008151811061394d57fe5b906020010190600160f860020a031916908160001a9053506139778b60418c03604188600161331c565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506139c0846000602088604261331c565b50613a516002866000604051602001526040518082805190602001908083835b602083106139ff5780518252601f1990920191602091820191016139e0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515613a4157600080fd5b505060405180519050888861362c565b9750871515613a635760009850613c33565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e481525092506042604051805910613ad15750595b818152601f19601f8301168101602001604052905091507ffe0000000000000000000000000000000000000000000000000000000000000082600081518110613b1657fe5b906020010190600160f860020a031916908160001a905350613b3e8b6003604185600161331c565b508a604581518110613b4c57fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910613b755750595b818152601f19601f830116810160200160405290509050613b9c8b6044835184600061331c565b50613c2d6002836000604051602001526040518082805190602001908083835b60208310613bdb5780518252601f199092019160209182019101613bbc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515613c1d57600080fd5b505060405180519050828561362c565b97508798505b505050505050505092915050565b600080613c4c614391565b600054600160a060020a03161580613c765750600054613c7490600160a060020a03166126e1565b155b15613c8757613c8560006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515613cd057600080fd5b6102c65a03f11515613ce157600080fd5b5050506040518051600154600160a060020a039081169116149050613d845760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515613d4957600080fd5b6102c65a03f11515613d5a57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a0316632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015613df5578082015183820152602001613ddd565b50505050905090810190601f168015613e225780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515613e4157600080fd5b6102c65a03f11515613e5257600080fd5b5050506040518051925050670de0b6b3a76400003a850201821115613e7a5760009250613623565b613e838561401a565b600154909150600160a060020a031663c55c1cb683600089858983604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015613f04578082015183820152602001613eec565b50505050905090810190601f168015613f315780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015613f67578082015183820152602001613f4f565b50505050905090810190601f168015613f945780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515613fb557600080fd5b6125ee5a03f11515613fc657600080fd5b505050506040518051979650505050505050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b614022614391565b60008061402d614391565b600080600061403a614391565b60008060008b51995060009850896040518059106140555750595b90808252806020026020018201604052801561408b57816020015b614078614391565b8152602001906001900390816140705790505b509750600096505b89871015614118578b87815181106140a757fe5b906020019060200201518888815181106140bd57fe5b60209081029091010152601760018989815181106140d757fe5b9060200190602002015151038115156140ec57fe5b048888815181106140f957fe5b9060200190602002015151019890980160030197600190960195614093565b600198909801976000955060808a019450886040518059106141375750595b818152601f19601f8301168101602001604052905093505b6001869011156141a15760f860020a8502866001811061416b57fe5b1a60f860020a0284878151811061417e57fe5b906020010190600160f860020a031916908160001a90535060019095019461414f565b600096505b89871015614381577f5f000000000000000000000000000000000000000000000000000000000000008487815181106141db57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061420a57fe5b906020019060200201515183101561432d576017830615156142c65760188389898151811061423557fe5b9060200190602002015151031015614265578288888151811061425457fe5b906020019060200201515103614268565b60175b60400191508590505b808603600111156142c65760f860020a82028187036001811061429057fe5b1a60f860020a028487815181106142a357fe5b906020010190600160f860020a031916908160001a905350600190950194614271565b8787815181106142d257fe5b9060200190602002015183815181106142e757fe5b016020015160f860020a900460f860020a0284878151811061430557fe5b906020010190600160f860020a031916908160001a90535060019586019592909201916141fe565b7fff0000000000000000000000000000000000000000000000000000000000000084878151811061435a57fe5b906020010190600160f860020a031916908160001a905350600196870196909501946141a6565b50919a9950505050505050505050565b60206040519081016040526000815290565b8280548282559060005260206000209081019282156143de579160200282015b828111156143de5782518255916020019190600101906143c3565b506111409291506144b0565b8154818355818115116126dc576006028160060283600052602060002091820191016126dc91906144ca565b60806040519081016040526004815b61442d614391565b8152602001906001900390816144255790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061448457805160ff19168380011785556143de565b828001600101855582156143de57918201828111156143de5782518255916020019190600101906143c3565b61100991905b8082111561114057600081556001016144b6565b61100991905b8082111561114057600080825560018201819055600282018054600160a060020a031990811690915560038301805490911690556004820181905560058201556006016144d0565b600054600160a060020a03161580614542575060005461454090600160a060020a03166126e1565b155b156145535761455160006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561459c57600080fd5b6102c65a03f115156145ad57600080fd5b5050506040518051600154600160a060020a0390811691161490506146505760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561461557600080fd5b6102c65a03f1151561462657600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b1515611cc657600080fd00a165627a7a72305820d324b1211dd3b258d3e1be789a80cc40d2cb8befa4a13f263f12c562685fd7860029

Deployed Bytecode

0x60606040526004361061015b5763ffffffff60e060020a60003504166311610c25811461015b57806312253a6c1461016557806322af00fa1461017857806327dc297e146101eb57806338bbfa50146102415780633f683b6a146102d9578063410a68b51461030057806355e56744146103165780635ad7a05a146103475780635ca3bf761461035d57806363ab7a251461037f578063669cab3914610392578063679dffb4146103a857806372229abf146103bb5780637ea2fc89146103d1578063841e6ce9146103e757806385eac05f146103fa5780638da5cb5b146104195780638f6f611514610448578063917179cb1461045b578063a737ecc914610471578063b3487a7114610493578063c4bc5da5146104a6578063cc4580c8146104b9578063d3b5695c146104cc578063e1287520146104e2578063e14ca10e1461054e578063ea6a49ea14610561578063f824d5b4146105b0575b6101636105c6565b005b341561017057600080fd5b610163610632565b341561018357600080fd5b61018e600435610684565b6040518087815260200186815260200185600160a060020a0316600160a060020a0316815260200184600160a060020a0316600160a060020a03168152602001838152602001828152602001965050505050505060405180910390f35b34156101f657600080fd5b610163600480359060446024803590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506106d795505050505050565b341561024c57600080fd5b610163600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061070995505050505050565b34156102e457600080fd5b6102ec610c5c565b604051901515815260200160405180910390f35b341561030b57600080fd5b610163600435610c7d565b341561032157600080fd5b610335600160a060020a0360043516610ca1565b60405190815260200160405180910390f35b341561035257600080fd5b610335600435610cb3565b341561036857600080fd5b610163600160a060020a0360043516602435610cd2565b341561038a57600080fd5b610163610d41565b341561039d57600080fd5b610163600435610dc0565b34156103b357600080fd5b610163610de8565b34156103c657600080fd5b610163600435610e4d565b34156103dc57600080fd5b610163600435610e6d565b34156103f257600080fd5b610335610f5e565b341561040557600080fd5b610163600160a060020a0360043516610f64565b341561042457600080fd5b61042c610fb6565b604051600160a060020a03909116815260200160405180910390f35b341561045357600080fd5b610335610fc5565b341561046657600080fd5b61033560043561100c565b341561047c57600080fd5b610163600435600160a060020a036024351661101a565b341561049e57600080fd5b610335611086565b34156104b157600080fd5b610163611144565b34156104c457600080fd5b61033561117f565b34156104d757600080fd5b610163600435611185565b34156104ed57600080fd5b6104fb6004356024356111a5565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561053a578082015183820152602001610522565b505050509050019250505060405180910390f35b341561055957600080fd5b6103356113b1565b341561056c57600080fd5b61016360046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506113b795505050505050565b34156105bb57600080fd5b61033560043561148f565b60055460009074010000000000000000000000000000000000000000900460ff16156105f157600080fd5b6105fa346114a1565b9050620f423f81146106145761060f816114ee565b61062f565b60055433600160a060020a0390811691161461062f57600080fd5b50565b60055433600160a060020a0390811691161461064d57600080fd5b6005805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b600a80548290811061069257fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501549395509193600160a060020a0391821693929091169186565b610705828260006040518059106106eb5750595b818152601f19601f83011681016020016040529050610709565b5050565b600080600080600080600080600061071f611753565b600160a060020a031633600160a060020a031614151561073e57600080fd5b60008c8152600b6020526040812054600a8054919b50908b90811061075f57fe5b6000918252602090912060026006909202010154600160a060020a0316141561078757600080fd5b600a8054600091908b90811061079957fe5b6000918252602090912060036006909202010154600160a060020a031614156107c157600080fd5b6001600a8a8154811015156107d257fe5b9060005260206000209060060201600101541415156107f057600080fd5b887fafe94ea43d7767bcbd461eca211fcd3ae4289d39e0866cfb55b5cb35817a37708d8d8d604051838152606060208201818152906040830190830185818151815260200191508051906020019080838360005b8381101561085c578082015183820152602001610844565b50505050905090810190601f1680156108895780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156108bf5780820151838201526020016108a7565b50505050905090810190601f1680156108ec5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a26109078c8c8c6118f3565b60ff16156109215761091c8960006005611a1b565b610c4e565b620100009750878b6040518082805190602001908083835b602083106109585780518252601f199092019160209182019101610939565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902081151561098e57fe5b600a80549290910698506101008904975060ff8916965088918b9081106109b157fe5b6000918252602090912060046006909202010155600a80548a9081106109d357fe5b906000526020600020906006020160050154612710600654600a8c8154811015156109fa57fe5b90600052602060002090600602016000015402811515610a1657fe5b04600202600a8b815481101515610a2957fe5b906000526020600020906006020160000154600202030393506000925084861415610a5b5761091c8960016007611a1b565b84861115610ac557600a80548a908110610a7157fe5b6000918252602090912060026006909202010154600a8054600160a060020a039092169350908a908110610aa157fe5b6000918252602090912060036006909202010154600160a060020a03169050610b23565b600a80548a908110610ad357fe5b6000918252602090912060036006909202010154600a8054600160a060020a039092169350908a908110610b0357fe5b6000918252602090912060026006909202010154600160a060020a031690505b600160a060020a03821684156108fc0285604051600060405180830381858888f193505050501515610ba557600160a060020a0382166000818152600c6020526040908190208054870190558a907fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a6529087905190815260200160405180910390a35b600160a060020a03811660006001604051600060405180830381858888f193505050501515610c2757600160a060020a0381166000818152600c602052604090819020805460019081019091558b917fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a65291905190815260200160405180910390a35b6002600a8a815481101515610c3857fe5b9060005260206000209060060201600101819055505b505050505050505050505050565b60055474010000000000000000000000000000000000000000900460ff1681565b60055433600160a060020a03908116911614610c9857600080fd5b61062f81611b46565b600c6020526000908152604090205481565b6007805482908110610cc157fe5b600091825260209091200154905081565b60055433600160a060020a03908116911614610ced57600080fd5b600160a060020a0382166000818152600c6020526040908190208390557f09c8dd3739ace289687f47d46672aedf36616326e99448282b99014389d2bfff9083905190815260200160405180910390a25050565b60055460009033600160a060020a03908116911614610d5f57600080fd5b5060005b60085481101561062f575b6000600882815481101515610d7f57fe5b60009182526020909120015414610db857610db3600882815481101515610da257fe5b906000526020600020900154610dc0565b610d6e565b600101610d63565b60055433600160a060020a03908116911614610ddb57600080fd5b61062f8160006004611a1b565b60055433600160a060020a03908116911614610e0357600080fd5b600554600160a060020a03166108fc610e1a611086565b30600160a060020a031631039081150290604051600060405180830381858888f193505050501515610e4b57600080fd5b565b60055433600160a060020a03908116911614610e6857600080fd5b600655565b806000600a82815481101515610e7f57fe5b90600052602060002090600602016001015414158015610ec057506001600a82815481101515610eab57fe5b90600052602060002090600602016001015414155b15610eca57600080fd5b33600160a060020a0316600a83815481101515610ee357fe5b6000918252602090912060026006909202010154600160a060020a03161415610f1457610f0f82611cd7565b610705565b33600160a060020a0316600a83815481101515610f2d57fe5b6000918252602090912060036006909202010154600160a060020a03161415610f5957610f0f82611e8e565b600080fd5b60065481565b60055433600160a060020a03908116911614610f7f57600080fd5b600160a060020a0381161515610f9457600080fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b600554600160a060020a031681565b600061100660408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152600954611f5c565b90505b90565b6008805482908110610cc157fe5b60055433600160a060020a0390811691161461103557600080fd5b61103d611086565b8230600160a060020a03163103101561105557600080fd5b600160a060020a03811682156108fc0283604051600060405180830381858888f19350505050151561070557600080fd5b600060015b600a54811015611140576000600a828154811015156110a657fe5b90600052602060002090600602016001015414156110e757600a8054829081106110cc57fe5b90600052602060002090600602016000015482019150611138565b6001600a828154811015156110f857fe5b906000526020600020906006020160010154141561113857600a80548290811061111e57fe5b906000526020600020906006020160000154600202820191505b60010161108b565b5090565b60055433600160a060020a0390811691161461115f57600080fd5b6005805474ff000000000000000000000000000000000000000019169055565b600a5490565b60055433600160a060020a039081169116146111a057600080fd5b600955565b6111ad614391565b6111b5614391565b600a5460009085106111c657600080fd5b8315156111d257600080fd5b600a5485850111156111e757600a5485900393505b836006026040518059106111f85750595b90808252806020026020018201604052509150600090505b838110156113a957600a805486830190811061122857fe5b90600052602060002090600602016000015482826006028151811061124957fe5b60209081029091010152600a805486830190811061126357fe5b90600052602060002090600602016001015482826006026001018151811061128757fe5b60209081029091010152600a80548683019081106112a157fe5b60009182526020909120600691820201600290810154600160a060020a031691849190840201815181106112d157fe5b60209081029091010152600a80548683019081106112eb57fe5b60009182526020909120600691820201600390810154600160a060020a0316918491908402018151811061131b57fe5b60209081029091010152600a805486830190811061133557fe5b90600052602060002090600602016004015482826006026004018151811061135957fe5b60209081029091010152600a805486830190811061137357fe5b90600052602060002090600602016005015482826006026005018151811061139757fe5b60209081029091010152600101611210565b509392505050565b60095481565b60055460009033600160a060020a039081169116146113d557600080fd5b5060005b6008548110156114125760006008828154811015156113f457fe5b6000918252602090912001541461140a57600080fd5b6001016113d9565b60078280516114259291602001906143a3565b506007546040518059106114365750595b9080825280602002602001820160405250600890805161145a9291602001906143a3565b50600090505b60085481101561070557600060088281548110151561147b57fe5b600091825260209091200155600101611460565b600b6020526000908152604090205481565b6000805b6007548110156114e157826007828154811015156114bf57fe5b90600052602060002090015414156114d9578091506114e8565b6001016114a5565b620f423f91505b50919050565b600080600060088481548110151561150257fe5b906000526020600020900154925060008314158015611555575033600160a060020a0316600a8481548110151561153557fe5b6000918252602090912060026006909202010154600160a060020a031614155b15611640576001600a8481548110151561156b57fe5b90600052602060002090600602016001018190555033600a8481548110151561159057fe5b906000526020600020906006020160030160006101000a815481600160a060020a030219169083600160a060020a031602179055506115cd610fc5565b9150348211156115e9576115e48360006006611a1b565b61163b565b6115f860006002600954612173565b6000818152600b60205260409020849055600a805491925083918590811061161c57fe5b90600052602060002090600602016005018190555061163b8484612619565b61174d565b600a80546001810161165283826143ea565b9160005260206000209060060201600060c0604051908101604052803481526020016000815260200133600160a060020a031681526020016000600160a060020a03168152602001600081526020016000815250909190915060008201518155602082015181600101556040820151600282018054600160a060020a031916600160a060020a03929092169190911790556060820151600382018054600160a060020a031916600160a060020a03929092169190911790556080820151816004015560a0820151600590910155505082151561174d57600a5460088054600019909201918690811061174057fe5b6000918252602090912001555b50505050565b60008054600160a060020a0316158061177e575060005461177c90600160a060020a03166126e1565b155b1561178f5761178d60006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156117d857600080fd5b6102c65a03f115156117e957600080fd5b5050506040518051600154600160a060020a03908116911614905061188c5760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561185157600080fd5b6102c65a03f1151561186257600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156118d457600080fd5b6102c65a03f115156118e557600080fd5b505050604051805191505090565b6000808260008151811061190357fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c0000000000000000000000000000000000000000000000000000000000000014158061199557508260018151811061195557fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b806119dd5750826002815181106119a857fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b156119eb57600191506113a9565b6119fe8386866119f9612a0c565b612ab4565b9050801515611a1057600291506113a9565b506000949350505050565b826000600a82815481101515611a2d57fe5b90600052602060002090600602016001015414158015611a6e57506001600a82815481101515611a5957fe5b90600052602060002090600602016001015414155b15611a7857600080fd5b611aae600a85815481101515611a8a57fe5b6000918252602090912060026006909202010154600160a060020a03168585613042565b600a80546000919086908110611ac057fe5b6000918252602090912060036006909202010154600160a060020a031614611b1857611b18600a85815481101515611af457fe5b6000918252602090912060036006909202010154600160a060020a03168585613042565b81600a85815481101515611b2857fe5b90600052602060002090600602016001018190555061174d8461315a565b600054600160a060020a03161580611b705750600054611b6e90600160a060020a03166126e1565b155b15611b8157611b7f60006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611bca57600080fd5b6102c65a03f11515611bdb57600080fd5b5050506040518051600154600160a060020a039081169116149050611c7e5760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c4357600080fd5b6102c65a03f11515611c5457600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b1515611cc657600080fd5b6102c65a03f1151561174d57600080fd5b600a8054600091829184908110611cea57fe5b6000918252602090912060036006909202010154600160a060020a031614611e2957600a805483908110611d1a57fe5b6000918252602090912060036006909202010154600a8054600160a060020a039092169184908110611d4857fe5b600091825260208220600691909102016002018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611d8857fe5b600091825260208220600691909102016003018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611dc857fe5b906000526020600020906006020160010181905550611e06600a83815481101515611def57fe5b9060005260206000209060060201600001546114a1565b905081600882815481101515611e1857fe5b600091825260209091200155611e58565b6003600a83815481101515611e3a57fe5b906000526020600020906006020160010181905550611e588261315a565b610705600a83815481101515611e6a57fe5b60009182526020822060026006909202010154600160a060020a0316908490613042565b600080600a83815481101515611ea057fe5b600091825260208220600691909102016003018054600160a060020a031916600160a060020a039390931692909217909155600a805484908110611ee057fe5b906000526020600020906006020160010181905550611f07600a83815481101515611def57fe5b905081600882815481101515611f1957fe5b600091825260209091200155600a8054610705919084908110611f3857fe5b60009182526020822060036006909202010154600160a060020a0316908490613042565b60008054600160a060020a03161580611f875750600054611f8590600160a060020a03166126e1565b155b15611f9857611f9660006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611fe157600080fd5b6102c65a03f11515611ff257600080fd5b5050506040518051600154600160a060020a0390811691161490506120955760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561205a57600080fd5b6102c65a03f1151561206b57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a0316632ef3accc84846000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156121065780820151838201526020016120ee565b50505050905090810190601f1680156121335780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561215257600080fd5b6102c65a03f1151561216357600080fd5b5050506040518051949350505050565b600061217d614391565b612185614391565b61218d614391565b6000612197614391565b61219f614391565b6121a7614416565b60006121b1614391565b8b15806121be575060208c115b156121c857600080fd5b600a8d029c5060016040518059106121dd5750595b818152601f19601f8301168101602001604052905098508b60f860020a028960008151811061220857fe5b906020010190600160f860020a031916908160001a905350602060405180591061222f5750595b818152601f19601f83011681016020016040529050975060206040518059106122555750595b818152601f19601f83011681016020016040529050965061227461319b565b95506020885242411860014303401860208901526020875285602088015260206040518059106122a15750595b818152601f19601f8301168101602001604052905094508c602086015260086040518059106122cd5750595b818152601f19601f8301168101602001604052905093506122f4856018600887600061331c565b506080604051908101604052808981526020018a815260200188815260200186815250925061235760408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848d613371565b915060086040518059106123685750595b8181526020601f909201601f191681018201604052915084015160f860020a810460278301537e01000000000000000000000000000000000000000000000000000000000000810460268301537d0100000000000000000000000000000000000000000000000000000000008104602583015360e060020a810460248301537b01000000000000000000000000000000000000000000000000000000810460238301537a01000000000000000000000000000000000000000000000000000081046022830153790100000000000000000000000000000000000000000000000000810460218301537801000000000000000000000000000000000000000000000000810460208301535061260982826020860151600287516000604051602001526040518082805190602001908083835b602083106124b85780518252601f199092019160209182019101612499565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156124fa57600080fd5b50506040518051905060408801516040518085805190602001908083835b602083106125375780518252601f199092019160209182019101612518565b6001836020036101000a038019825116818451161790925250505091909101905084805190602001908083835b602083106125835780518252601f199092019160209182019101612564565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106125d55780518252601f1990920191602091820191016125b6565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020613581565b509b9a5050505050505050505050565b600181015b600a548110156126be57600780548490811061263657fe5b906000526020600020900154600a8281548110151561265157fe5b90600052602060002090600602016000015414801561269057506000600a8281548110151561267c57fe5b906000526020600020906006020160010154145b156126b657806008848154811015156126a557fe5b6000918252602090912001556126dc565b60010161261e565b60006008848154811015156126cf57fe5b6000918252602090912001555b505050565b3b90565b600080612705731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6126e1565b11156127755760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905561276d60408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152613593565b506001612a07565b600061279473c03a2615d5efaf5f49f60b7bb6583eaec212fdf16126e1565b11156127fc5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905561276d60408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152613593565b600061281b73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6126e1565b11156128835760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905561276d60408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152613593565b60006128a273146500cfd35b22e4a392fe0adc06de1a1368ed486126e1565b111561290a5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905561276d60408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152613593565b6000612929736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756126e1565b111561295d575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001612a07565b600061297c7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6126e1565b11156129b0575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001612a07565b60006129cf7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6126e1565b1115612a03575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001612a07565b5060005b919050565b612a14614391565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612aaa5780601f10612a7f57610100808354040283529160200191612aaa565b820191906000526020600020905b815481529060010190602001808311612a8d57829003601f168201915b5050505050905090565b600080612abf614391565b612ac7614391565b612acf614391565b612ad7614391565b600080612ae2614391565b8c604581518110612aef57fe5b016020015160f860020a9081900481020460660197506020604051805910612b145750595b818152601f19601f830116810160200160405290509650612b3a8d8960208a600061331c565b5060028a8d6000604051602001526040518083805190602001908083835b60208310612b775780518252601f199092019160209182019101612b58565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f11515612bbd57600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b60208310612c085780518252601f199092019160209182019101612be9565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902014612c435760009850613032565b8c604a890181518110612c5257fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910612c7b5750595b818152601f19601f830116810160200160405290509550612ca48d89604901885189600061331c565b50612d5c6002876000604051602001526040518082805190602001908083835b60208310612ce35780518252601f199092019160209182019101612cc4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612d2557600080fd5b5050604051805190508c8f60288c0181518110612d3e57fe5b016020015160f860020a900460f860020a0260f860020a90046135a6565b1515612d6b5760009850613032565b6029604051805910612d7a5750595b818152601f19601f830116810160200160405290509450612da38d89602001602988600061331c565b5060408051805910612db25750595b818152601f19601f830116810160200160405290509350855188602001602901016041019250612dea8d60408503604087600061331c565b506002846000604051602001526040518082805190602001908083835b60208310612e265780518252601f199092019160209182019101612e07565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612e6857600080fd5b505060405180519050915084826040518083805190602001908083835b60208310612ea45780518252601f199092019160209182019101612e85565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008d8152600360205260409020541415612eff5760008c815260036020526040812055612f08565b60009850613032565b6049604051805910612f175750595b818152601f19601f830116810160200160405290509050612f3d8d89604984600061331c565b50612fce6002826000604051602001526040518082805190602001908083835b60208310612f7c5780518252601f199092019160209182019101612f5d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612fbe57600080fd5b505060405180519050878661362c565b1515612fdd5760009850613032565b60008281526004602052604090205460ff16151561301d57612fff8d84613845565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1698505b5050505050505050949350505050565b60006002600a8481548110151561305557fe5b90600052602060002090600602016005015481151561307057fe5b0461271083613080576000613084565b6006545b600a80548790811061309257fe5b906000526020600020906006020160000154028115156130ae57fe5b04600a858154811015156130be57fe5b600091825260209091206006909102015403039050600160a060020a03841681156108fc0282604051600060405180830381858888f19350505050151561174d57600160a060020a0384166000818152600c60205260409081902080548401905584907fcacc7beabf9904dfc24cad3873ae677ffd6bbc699f6e5e6a51bbaa487121a6529084905190815260200160405180910390a350505050565b60005b600854811015610705578160088281548110151561317757fe5b906000526020600020900154141561319357610f0f8183612619565b60010161315d565b60008054600160a060020a031615806131c657506000546131c490600160a060020a03166126e1565b155b156131d7576131d560006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561322057600080fd5b6102c65a03f1151561323157600080fd5b5050506040518051600154600160a060020a0390811691161490506132d45760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561329957600080fd5b6102c65a03f115156132aa57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156118d457600080fd5b613324614391565b838201600080828651101561333857600080fd5b505060208087019084015b86886020010182101561336457818901518682015260209182019101613343565b5093979650505050505050565b600061337b614391565b600054600160a060020a031615806133a557506000546133a390600160a060020a03166126e1565b155b156133b6576133b460006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156133ff57600080fd5b6102c65a03f1151561341057600080fd5b5050506040518051600154600160a060020a0390811691161490506134b35760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561347857600080fd5b6102c65a03f1151561348957600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b60046040518059106134c25750595b9080825280602002602001820160405280156134f857816020015b6134e5614391565b8152602001906001900390816134dd5790505b50905083518160008151811061350a57fe5b6020908102909101015283600160200201518160018151811061352957fe5b602090810291909101015260408401518160028151811061354657fe5b602090810291909101015260608401518160038151811061356357fe5b60209081029091010152613578858285613c41565b95945050505050565b60009182526003602052604090912055565b6002818051610705929160200190614443565b6000600181838551146135b857600080fd5b5060005b8381101561361f578481815181106135d057fe5b016020015160f860020a900460f860020a02600160f860020a03191686826020811015156135fa57fe5b1a60f860020a02600160f860020a03191614151561361757600091505b6001016135bc565b8192505b50509392505050565b600080600080600061363c614391565b6000613646614391565b60206040518059106136555750595b8181526020601f909201601f19168101820160405293508a60038151811061367957fe5b016020015160f860020a900460f860020a0260f860020a90040360040191506136a78a83602086600061331c565b925060206040518059106136b85750595b818152601f19601f8301168101602001604052905090506022820191506137108a60208c60018603815181106136ea57fe5b016020015160f860020a900460f860020a0260f860020a9004038401602084600061331c565b9050602083015194506020810151935061372d8b601b8787613fda565b9097509550600160a060020a038616896040518082805190602001908083835b6020831061376c5780518252601f19909201916020918201910161374d565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a031614156137b15760019750613837565b6137be8b601c8787613fda565b9097509550600160a060020a038616896040518082805190602001908083835b602083106137fd5780518252601f1990920191602091820191016137de565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b600080613850614391565b613858614391565b613860614391565b613868614391565b613870614391565b613878614391565b613880614391565b8a8a6001018151811061388f57fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106138b85750595b818152601f19601f8301168101602001604052905096506138de8b8b89518a600061331c565b50604080518059106138ed5750595b818152601f19601f8301168101602001604052905095506139148b6004604089600061331c565b5060626040518059106139245750595b818152601f19601f83011681016020016040529050945060f860020a8560008151811061394d57fe5b906020010190600160f860020a031916908160001a9053506139778b60418c03604188600161331c565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506139c0846000602088604261331c565b50613a516002866000604051602001526040518082805190602001908083835b602083106139ff5780518252601f1990920191602091820191016139e0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515613a4157600080fd5b505060405180519050888861362c565b9750871515613a635760009850613c33565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e481525092506042604051805910613ad15750595b818152601f19601f8301168101602001604052905091507ffe0000000000000000000000000000000000000000000000000000000000000082600081518110613b1657fe5b906020010190600160f860020a031916908160001a905350613b3e8b6003604185600161331c565b508a604581518110613b4c57fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910613b755750595b818152601f19601f830116810160200160405290509050613b9c8b6044835184600061331c565b50613c2d6002836000604051602001526040518082805190602001908083835b60208310613bdb5780518252601f199092019160209182019101613bbc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515613c1d57600080fd5b505060405180519050828561362c565b97508798505b505050505050505092915050565b600080613c4c614391565b600054600160a060020a03161580613c765750600054613c7490600160a060020a03166126e1565b155b15613c8757613c8560006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515613cd057600080fd5b6102c65a03f11515613ce157600080fd5b5050506040518051600154600160a060020a039081169116149050613d845760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515613d4957600080fd5b6102c65a03f11515613d5a57600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a0316632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015613df5578082015183820152602001613ddd565b50505050905090810190601f168015613e225780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515613e4157600080fd5b6102c65a03f11515613e5257600080fd5b5050506040518051925050670de0b6b3a76400003a850201821115613e7a5760009250613623565b613e838561401a565b600154909150600160a060020a031663c55c1cb683600089858983604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015613f04578082015183820152602001613eec565b50505050905090810190601f168015613f315780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015613f67578082015183820152602001613f4f565b50505050905090810190601f168015613f945780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b1515613fb557600080fd5b6125ee5a03f11515613fc657600080fd5b505050506040518051979650505050505050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b614022614391565b60008061402d614391565b600080600061403a614391565b60008060008b51995060009850896040518059106140555750595b90808252806020026020018201604052801561408b57816020015b614078614391565b8152602001906001900390816140705790505b509750600096505b89871015614118578b87815181106140a757fe5b906020019060200201518888815181106140bd57fe5b60209081029091010152601760018989815181106140d757fe5b9060200190602002015151038115156140ec57fe5b048888815181106140f957fe5b9060200190602002015151019890980160030197600190960195614093565b600198909801976000955060808a019450886040518059106141375750595b818152601f19601f8301168101602001604052905093505b6001869011156141a15760f860020a8502866001811061416b57fe5b1a60f860020a0284878151811061417e57fe5b906020010190600160f860020a031916908160001a90535060019095019461414f565b600096505b89871015614381577f5f000000000000000000000000000000000000000000000000000000000000008487815181106141db57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061420a57fe5b906020019060200201515183101561432d576017830615156142c65760188389898151811061423557fe5b9060200190602002015151031015614265578288888151811061425457fe5b906020019060200201515103614268565b60175b60400191508590505b808603600111156142c65760f860020a82028187036001811061429057fe5b1a60f860020a028487815181106142a357fe5b906020010190600160f860020a031916908160001a905350600190950194614271565b8787815181106142d257fe5b9060200190602002015183815181106142e757fe5b016020015160f860020a900460f860020a0284878151811061430557fe5b906020010190600160f860020a031916908160001a90535060019586019592909201916141fe565b7fff0000000000000000000000000000000000000000000000000000000000000084878151811061435a57fe5b906020010190600160f860020a031916908160001a905350600196870196909501946141a6565b50919a9950505050505050505050565b60206040519081016040526000815290565b8280548282559060005260206000209081019282156143de579160200282015b828111156143de5782518255916020019190600101906143c3565b506111409291506144b0565b8154818355818115116126dc576006028160060283600052602060002091820191016126dc91906144ca565b60806040519081016040526004815b61442d614391565b8152602001906001900390816144255790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061448457805160ff19168380011785556143de565b828001600101855582156143de57918201828111156143de5782518255916020019190600101906143c3565b61100991905b8082111561114057600081556001016144b6565b61100991905b8082111561114057600080825560018201819055600282018054600160a060020a031990811690915560038301805490911690556004820181905560058201556006016144d0565b600054600160a060020a03161580614542575060005461454090600160a060020a03166126e1565b155b156145535761455160006126e5565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561459c57600080fd5b6102c65a03f115156145ad57600080fd5b5050506040518051600154600160a060020a0390811691161490506146505760008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561461557600080fd5b6102c65a03f1151561462657600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055505b600154600160a060020a031663688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b1515611cc657600080fd00a165627a7a72305820d324b1211dd3b258d3e1be789a80cc40d2cb8befa4a13f263f12c562685fd7860029

Swarm Source

bzzr://d324b1211dd3b258d3e1be789a80cc40d2cb8befa4a13f263f12c562685fd786

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.