Sponsored Link: Datum ICO unlocks the $120 Bln User Data Economy. Data is the new Oil. Get Free Tokens worth .05 ETH
Contract Overview | ethereumlottery.io
ETH Balance: 1 Ether
ETH USD Value: $297.78 (@ $297.78/ETH)
No Of Transactions: 284 txns
  Latest 25 txns from a total Of 284 transactions View All

TxHash Age From To Value [TxFee]
0x50ae7d9e44b67d798b8d8335c59b4532364a331ef340b1a586659fde9ac0582e436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00059124
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f5950436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00330712
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00448128
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00448128
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e97436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00448128
0x1d86bb94a831098e8065e0b9c9fafa87804c4f1ab280181b15e4add098b3953a436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00448128
0x65a2749324ffba9ae536741440d30487336e1b5dc7f47bcf8fceb1a72d2ff1e1436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00250216
0x3c4a224dd307cba3c0b389ce861ead25dd1449053c6b3a13b62953b45336c568436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x5a315c2a62ffca8b14f49e9653f7f7c45dbfe14f598bd6441ccef9392a9ed91f436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0xa0384a4ef54b84c7f602d7f54ee5f2ff69be50b7a315eda11330e1e41b941f29436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0xd1f50fc086689db2f9a5f70fef351563560a8a0d50b43ed3369cdee0fdcfe456436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0xb52b562e09810cc5f222d86b1365889af1887792b3a8342f44d8382397c2c6f5436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x450bc4d916ce3378a63ab9fa0d2c0f82812a833f5899bf2c14f0a03c95ec23ec436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x5b7436fd783a27c96b8e1b50c239b868fb5415b6eb8e33878bdf8a8af39da387436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0xc6baa1f2bd4e656906778abcfab59d523d9221dc60e1538b244393c2f6c0d2b5436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x645f267c8ead1fbe2fd969d160668830943061ad00ada1e1d41db8be2abb97a8436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x750b4ca93d33a2f6f00ae7f029e1e03d3cb573224f4e4ae29ffabf71affbf51a436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0xa3871d77f82b5d7e6f6804fc8a3a57bbc1dc5d64d84c926b4058a98f0e744d0b436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x913a0dcd0f53c623572094ad3fc6b7cc7a4e4ef6e1ff8a61a5eb0e7eafb54656436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x4b21475ee3fbd14e8bf98017d26e6a1acf878f6143bf95d76a3779f25b411d1e436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x08dcc43a61972be2e943c0f24119dcc4e07b7f3a5df25cfad2944b60f7bb163d436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x4cc45d3b7f52de48ae97906142e7458464d71e17bb819127652b7e8ef6f11460436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x1cad041e078488050150e4a7042e0552a414313dcbde17360ef1ca46d651fc23436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x771a700632c77fa042d8e8cb0882f3118fef5af59031860420e98802b9c6262f436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
0x4f5b90c3a5dee1bbd73e8bbabf4ade6de02d6605d26bf2368e7c29d5a11ca973436 days 20 hrs ago0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc22  IN   ethereumlottery.io0 Ether0.00200738
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0x50ae7d9e44b67d798b8d8335c59b4532364a331ef340b1a586659fde9ac0582e2045157436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0xc3e44527b935d02d805d8d21dd07ea9d2cd5fc220.2692 Ether
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f59502045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x59d5284238e34d03791b14378a259d7e1290001e30.67585 Ether
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f59502045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f59502045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f59502045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xf0f36b1d4baa2c62fe5831fcaa0f4031437771450ba6284d5e2c07af566f59502045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0xc7621f384813617d8fff8144f2c4462abca703059f439c13d69df4dbc2dfc5da2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x7a2421c09271c514658539089869f2505624fb3d998869df6ad266f1871bae9c2045151436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e972045149436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e972045149436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e972045149436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e972045149436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x930b4de1033cc8f49983a9a4cce3e7a2847b496db48cf6d1cad957817e314e972045149436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x1d86bb94a831098e8065e0b9c9fafa87804c4f1ab280181b15e4add098b3953a2045148436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x1d86bb94a831098e8065e0b9c9fafa87804c4f1ab280181b15e4add098b3953a2045148436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x1d86bb94a831098e8065e0b9c9fafa87804c4f1ab280181b15e4add098b3953a2045148436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
0x1d86bb94a831098e8065e0b9c9fafa87804c4f1ab280181b15e4add098b3953a2045148436 days 20 hrs ago0x302fe87b56330be266599fab2a54747299b5ac5b0x41f274c0023f83391de4e0733c609df5a124c3d40.001 Ether
[ Download CSV Export  ] 



  Contract Source Code   Find Similiar Contracts
contract BTCRelay {
    function getLastBlockHeight() returns (int);
    function getBlockchainHead() returns (int);
    function getFeeAmount(int blockHash) returns (int);
    function getBlockHeader(int blockHash) returns (bytes32[3]);
}

contract Lottery {
    int constant LOTTERY_BLOCKS = 7 * 24 * 6;
    uint constant LOTTERY_INTERVAL = 7 days;
    int constant CUTOFF_BLOCKS = 6 * 6;
    uint constant CUTOFF_INTERVAL = 6 hours;
    uint constant TICKET_PRICE = 10 finney;
    uint constant FEE_FACTOR = 200; // 0.5 %

    BTCRelay btcRelay = BTCRelay(0x41f274c0023f83391de4e0733c609df5a124c3d4);

    struct Bucket {
        uint numHolders;
        address[] ticketHolders;
    }

    struct Payout {
        address winner;
        uint amount;
        uint blockNumber;
        uint timestamp;
        address processor;
    }

    int public decidingBlock;
    int public cutoffBlock;
    uint public cutoffTimestamp;
    int public nearestKnownBlock;
    int public nearestKnownBlockHash;

    uint public numTickets;
    uint public numBuckets;
    mapping (uint => Bucket) buckets;
    uint public lastSaleTimestamp;

    Payout[] public payouts;
    uint public payoutIdx;

    address public owner;

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

    event Activity();

    function Lottery() {
        owner = msg.sender;
        payouts.length = 3;
        prepareLottery();
    }

    function prepareLottery() internal {
        decidingBlock = btcRelay.getLastBlockHeight() + LOTTERY_BLOCKS;
        cutoffBlock = decidingBlock - CUTOFF_BLOCKS;
        cutoffTimestamp = now + LOTTERY_INTERVAL - CUTOFF_INTERVAL;
        nearestKnownBlock = 0;
        nearestKnownBlockHash = 0;

        numTickets = 0;
        for (uint i = 0; i < numBuckets; i++) {
            buckets[i].numHolders = 0;
        }
        numBuckets = 0;
        lastSaleTimestamp = 0;
    }

    function resetLottery() {
        if (numTickets > 0) throw;
        if (!payoutReady()) throw;

        prepareLottery();
        Activity();
    }

    function () {
        buyTickets(msg.sender);
    }

    function buyTickets(address ticketHolder) {
        if (msg.value < TICKET_PRICE) throw;
        if (!ticketsAvailable()) throw;

        uint n = msg.value / TICKET_PRICE;
        numTickets += n;

        // We maintain the list of ticket holders in a number of buckets.
        // Entries in the first bucket represent one ticket each, in the
        // second bucket they represent two tickets each, then four tickets
        // each and so on. This allows us to process the sale of n tickets
        // with a gas cost of O(log(n)).
        uint bucket = 0;
        while (n > 0) {
            uint inThisBucket = n & (2 ** bucket);
            if (inThisBucket > 0) {
                uint pos = buckets[bucket].numHolders++;
                if (buckets[bucket].ticketHolders.length <
                    buckets[bucket].numHolders) {
                    buckets[bucket].ticketHolders.length =
                        buckets[bucket].numHolders;
                }
                buckets[bucket].ticketHolders[pos] = ticketHolder;
                n -= inThisBucket;
            }
            bucket += 1;
        }

        if (bucket > numBuckets) numBuckets = bucket;

        int missingBlocks = decidingBlock - btcRelay.getLastBlockHeight();
        uint betterCutoffTimestamp =
            now + uint(missingBlocks) * 10 minutes - CUTOFF_INTERVAL;
        if (betterCutoffTimestamp < cutoffTimestamp) {
            cutoffTimestamp = betterCutoffTimestamp;
        }

        lastSaleTimestamp = now;
        Activity();
    }

    function ticketsAvailable() constant returns (bool) {
        return now < cutoffTimestamp &&
            btcRelay.getLastBlockHeight() < cutoffBlock;
    }

    function lookupTicketHolder(uint idx) constant returns (address) {
        uint bucket = 0;
        while (idx >= buckets[bucket].numHolders * (2 ** bucket)) {
            idx -= buckets[bucket].numHolders * (2 ** bucket);
            bucket += 1;
        }

        return buckets[bucket].ticketHolders[idx / (2 ** bucket)];
    }

    function getNumHolders(uint bucket) constant returns (uint) {
        return buckets[bucket].numHolders;
    }

    function getTicketHolders(uint bucket) constant returns (address[]) {
        return buckets[bucket].ticketHolders;
    }

    function getLastBlockHeight() constant returns (int) {
        return btcRelay.getLastBlockHeight();
    }

    function getOperatingBudget() constant returns (uint) {
        return this.balance - numTickets * TICKET_PRICE;
    }

    function checkDepth(uint n) constant returns (bool) {
        if (n == 0) return true;
        return checkDepth(n - 1);
    }

    function payoutReady() constant returns (bool) {
        return decidingBlock <= btcRelay.getLastBlockHeight();
    }

    function processPayout() returns (bool done) {
        if (!payoutReady()) throw;
        if (getOperatingBudget() < 1 ether) throw;
        if (numTickets == 0) throw;
        if (!checkDepth(8)) throw;

        var (walkingDone, blockHash) = walkTowardsBlock();
        if (!walkingDone) return false;

        int winnerIdx = blockHash % int(numTickets);
        address winner = lookupTicketHolder(uint(winnerIdx));
        uint fee = (numTickets * TICKET_PRICE) / FEE_FACTOR;
        uint amount = (numTickets * TICKET_PRICE) - fee;

        // keep some records
        payouts[payoutIdx].winner = winner;
        payouts[payoutIdx].amount = amount;
        payouts[payoutIdx].blockNumber = block.number;
        payouts[payoutIdx].timestamp = now;
        payouts[payoutIdx].processor = msg.sender;
        payoutIdx = (payoutIdx + 1) % 3;

        prepareLottery();   // prepare next round
        var _ = winner.send(amount);
        Activity();

        return true;
    }

    function walkTowardsBlock() internal returns (bool, int) {
        int blockHeight;
        int blockHash;
        if (nearestKnownBlock == 0) {
            blockHeight = btcRelay.getLastBlockHeight();
            blockHash = btcRelay.getBlockchainHead();
        } else {
            blockHeight = nearestKnownBlock;
            blockHash = nearestKnownBlockHash;
        }

        // Walk at most 5 steps to keep an upper limit on gas costs.
        for (uint steps = 0; steps < 5; steps++) {
            if (blockHeight == decidingBlock) {
                return (true, blockHash);
            }

            uint fee = uint(btcRelay.getFeeAmount(blockHash));
            bytes32 blockHeader =
                btcRelay.getBlockHeader.value(fee)(blockHash)[2];
            bytes32 temp;

            assembly {
                let x := mload(0x40)
                mstore(x, blockHeader)
                temp := mload(add(x, 0x04))
            }

            blockHeight -= 1;
            blockHash = 0;
            for (int i = 0; i < 32; i++) {
                blockHash = blockHash | int(temp[uint(i)]) * (256 ** i);
            }
        }

        // Store the progress to pick up from there next time.
        nearestKnownBlock = blockHeight;
        nearestKnownBlockHash = blockHash;

        return (false, 0);
    }

    function accessOperatingBudget(uint amount) onlyOwner {
        if (getOperatingBudget() < 1 ether) throw;

        uint safeToAccess = getOperatingBudget() - 1 ether;
        if (amount > safeToAccess) throw;

        var _ = owner.send(amount);
    }

    function setOwner(address _owner) onlyOwner {
        owner = _owner;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"bucket","type":"uint256"}],"name":"getTicketHolders","outputs":[{"name":"","type":"address[]"}],"type":"function"},{"constant":true,"inputs":[],"name":"getLastBlockHeight","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"ticketsAvailable","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"cutoffTimestamp","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"payouts","outputs":[{"name":"winner","type":"address"},{"name":"amount","type":"uint256"},{"name":"blockNumber","type":"uint256"},{"name":"timestamp","type":"uint256"},{"name":"processor","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"cutoffBlock","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":true,"inputs":[],"name":"nearestKnownBlockHash","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":true,"inputs":[{"name":"n","type":"uint256"}],"name":"checkDepth","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"numTickets","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"ticketHolder","type":"address"}],"name":"buyTickets","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"bucket","type":"uint256"}],"name":"getNumHolders","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getOperatingBudget","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"accessOperatingBudget","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"processPayout","outputs":[{"name":"done","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"nearestKnownBlock","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":true,"inputs":[],"name":"decidingBlock","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"payoutIdx","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"idx","type":"uint256"}],"name":"lookupTicketHolder","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"numBuckets","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"resetLottery","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"payoutReady","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"lastSaleTimestamp","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[],"type":"constructor"},{"anonymous":false,"inputs":[],"name":"Activity","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405260008054600160a060020a0319167341f274c0023f83391de4e0733c609df5a124c3d4179055600c8054600160a060020a03191633179055600a805460038083559190829080158290116100ba576005028160050283600052602060002091820191016100ba91905b80821115610179578054600160a060020a031990811682556000600183018190556002830181905582860155600482018054909116905560050161006d565b610e658061018a6000396000f35b505050506100ac600080547f023948720000000000000000000000000000000000000000000000000000000060609081526103f091600160a060020a03169063023948729060649060209060048188876161da5a03f11561000257505060405151918201600155506103cc016002556208e62042016003556004819055600581905560068190555b60075481101561017d5760006008600050600083815260200190815260200160002060005060000160005081905550600101610142565b5090565b6000600781905560095550566060604052361561011b5760e060020a60003504622a5cc9811461012757806302394872146101a757806313af4035146101ff5780631825323414610231578063203a79f6146102a257806329652e86146102ab5780632c6a0140146103915780632f7a163b1461039a578063349501b7146103a3578063353d90ec146103bd578063378c0605146103c657806352200a13146103ed578063531c1b33146104085780635a28340a146104285780635c52e51e1461045a57806378ca923d1461047557806389cd4b5e1461047e5780638da5cb5b14610487578063a60f358814610499578063a9fbc614146104a2578063bfdcc9a2146104e0578063d337616e146104e9578063e0fe075e146104fd578063f5c217da1461055c575b610565610567336103cd565b6105696004356040805160208181018352600080835284815260088252835190849020600101805480840283018401909552848252929390929183018282801561019b57602002820191906000526020600020905b8154600160a060020a031681526001919091019060200180831161017c575b50505050509050610403565b600080546040805160e160020a63011ca43902815290516105b39392600160a060020a0316916302394872916004828101926020929190829003018187876161da5a03f1156100025750506040515191506104259050565b610565600435600c54600160a060020a033381169116141561022e57600c8054600160a060020a031916821790555b50565b6105c55b6003546000904210801561029b575060025481546040805160e160020a63011ca4390281529051600160a060020a0390921691630239487291600481810192602092909190829003018188876161da5a03f1156100025750505060405180519060200150125b9050610425565b6105b360035481565b6105d9600435600a8054829081101561000257506000526005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a88101547fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac8201547fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a98301547fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa8401547fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab9490940154600160a060020a03938416949193919290911685565b6105b360025481565b6105b360055481565b6105c56004355b6000816000141561083d57506001610403565b6105b360065481565b6105656004355b600060006000600060006000662386f26fc1000034101561063a57610002565b6105b36004356000818152600860205260409020545b919050565b6105b35b600654662386f26fc100000230600160a060020a031631035b90565b610565600435600c546000908190600160a060020a033381169116141561087457670de0b6b3a764000061087961040c565b6105c5600060006000600060006000600060006108fc610501565b6105b360045481565b6105b360015481565b61061d600c54600160a060020a031681565b6105b3600b5481565b61061d6004355b6000805b600081815260086020526040902054600282900a028310610c5757604060002054600282900a02909203916001016104ad565b6105b360075481565b6105656006546000901115610c9557610002565b6105c55b600080546040805160e160020a63011ca4390281529051600160a060020a0390921691630239487291600481810192602092909190829003018187876161da5a03f11561000257505060405151600154131591506104259050565b6105b360095481565b005b565b60405180806020018281038252838181518152602001915080519060200190602002808383829060006004602084601f0104600f02600301f1509050019250505060405180910390f35b60408051918252519081900360200190f35b604080519115158252519081900360200190f35b6040518086600160a060020a0316815260200185815260200184815260200183815260200182600160a060020a031681526020019550505050505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b610642610235565b151561064d57610002565b60068054662386f26fc1000034049081019091559550600094505b600086111561071a578460020a86169350600084111561082d5760008581526008602052604090208054600181810180845592015490945010156107e057600860005060008681526020019081526020016000206000506000016000505460086000506000878152602001908152602001600020600050600101600050818154818355818115116107db576000838152602090206107db9181019083015b808211156108395760008155600101610706565b60075485111561072a5760078590555b600060009054906101000a9004600160a060020a0316600160a060020a031663023948726040518160e060020a0281526004018090506020604051808303816000876161da5a03f11561000257505060405151600154600354919003935061545f196102588502420101925082101590506107a55760038190555b426009556040517fea1bf176d98d5f7779234edcfdcceafb89e54ddd01c4e88afd750bf5a278c48890600090a150505050505050565b505050505b60008581526008602052604090206001018054889190859081101561000257906000526020600020900160006101000a815481600160a060020a0302191690830217905550838603955085505b60019490940193610668565b5090565b610849600183036103aa565b9050610403565b604051600c54600160a060020a031690600090859082818181858883f19450505050505b505050565b101561088457610002565b670de0b6b3a764000061089561040c565b0391508183111561085057610002565b604051600160a060020a03851690600090849082818181858883f16040519095507fea1bf176d98d5f7779234edcfdcceafb89e54ddd01c4e88afd750bf5a278c4889450915050a1600197505b5050505050505090565b151561090757610002565b670de0b6b3a764000061091861040c565b101561092357610002565b6006546000141561093357610002565b61093d60086103aa565b151561094857610002565b610a2a60006000600060006000600060006000600060046000505460001415610cf857600060009054906101000a9004600160a060020a0316600160a060020a031663023948726040518160e060020a0281526004018090506020604051808303816000876161da5a03f11561000257505060408051805184547f09dd0e810000000000000000000000000000000000000000000000000000000083529251909a50600160a060020a039290921692506309dd0e81916004828101926020929190829003018187876161da5a03f115610002575050604051519650610d049050565b96509650861515610a3e57600097506108f2565b60065486079450610a4e856104a9565b600654600b54600a805493975060c8662386f26fc1000093909302928304965091869003945086928110156100025760009182526005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190508054600160a060020a0319169091179055600b54600a8054849290811015610002576005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a90191909155600b54815443929190811015610002576005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa0191909155600b54815442929190811015610002576005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab0191909155600b54815433929190811015610002576005027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac018054600160a060020a03191690921790915550600b805460036001919091010690556108a55b600080546040805160e160020a63011ca43902815290516103f092600160a060020a0316916302394872916004828101926020929190829003018188876161da5a03f11561000257505060405151918201600155506103cc016002556208e62042016003556004819055600581905560068190555b600754811015610e5857600081815260086020526040812055600101610c36565b60008181526008602052604090206001018054600283900a85049081101561000257600091825260209091200154600160a060020a03169392505050565b610c9d610501565b1515610ca857610002565b610cb0610bc1565b6040517fea1bf176d98d5f7779234edcfdcceafb89e54ddd01c4e88afd750bf5a278c48890600090a1565b60048790556005869055600098508897505b505050505050509091565b60045460055490975095505b600094505b6005851015610cdb57600154871415610d285760018698509850610ced565b600060009054906101000a9004600160a060020a0316600160a060020a0316630aece23c876040518260e060020a028152600401808281526020019150506020604051808303816000876161da5a03f1156100025750506040805180516000547f1f794436000000000000000000000000000000000000000000000000000000008352600483018b90529251909750600160a060020a03929092169250631f794436918791602481810192606092909190829003018185886185025a03f11561000257505060408051606081018083529181015191829052606401516000199a909a019960009950909550935087925050505b6020811215610e4c57806101000a828260208110156100025760f860020a91901a8102040290951794600101610e1b565b60019490940193610d09565b600060078190556009555056
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.