[{"constant":true,"inputs":[],"name":"lastInitTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"int256"}],"name":"lotteries","outputs":[{"name":"jackpot","type":"uint256"},{"name":"decidingBlock","type":"int256"},{"name":"numTickets","type":"uint256"},{"name":"numTicketsSold","type":"uint256"},{"name":"ticketPrice","type":"uint256"},{"name":"affiliateCut","type":"uint256"},{"name":"winningTicket","type":"int256"},{"name":"winner","type":"address"},{"name":"finalizationBlock","type":"uint256"},{"name":"finalizer","type":"address"},{"name":"message","type":"string"},{"name":"nearestKnownBlock","type":"int256"},{"name":"nearestKnownBlockHash","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"recentActivity","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"needsBlockFinalization","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"needsLotteryFinalization","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"},{"name":"_offset","type":"uint256"},{"name":"_n","type":"uint256"},{"name":"_addr","type":"address"}],"name":"getTicketDetails","outputs":[{"name":"details","type":"uint8[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"affiliateNetwork","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_message","type":"string"}],"name":"getMessageLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"finalizeBlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"}],"name":"getLotteryDetailsB","outputs":[{"name":"_actualId","type":"int256"},{"name":"_winningTicket","type":"int256"},{"name":"_winner","type":"address"},{"name":"_finalizationBlock","type":"uint256"},{"name":"_finalizer","type":"address"},{"name":"_message","type":"string"},{"name":"_prevLottery","type":"int256"},{"name":"_nextLottery","type":"int256"},{"name":"_blockHeight","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRecentActivity","outputs":[{"name":"_id","type":"int256"},{"name":"_idx","type":"uint256"},{"name":"_recentActivity","type":"uint256[1000]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"recentActivityIdx","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"id","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"int256"},{"name":"_message","type":"string"}],"name":"setMessage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"},{"name":"_offset","type":"uint256"},{"name":"_n","type":"uint256"}],"name":"getFullTicketDetails","outputs":[{"name":"details","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"proposeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"needsInitialization","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_jackpot","type":"uint256"},{"name":"_numTickets","type":"uint256"},{"name":"_ticketPrice","type":"uint256"}],"name":"initLottery","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"proposedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"btcRelay","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"}],"name":"getLotteryDetailsA","outputs":[{"name":"_actualId","type":"int256"},{"name":"_jackpot","type":"uint256"},{"name":"_decidingBlock","type":"int256"},{"name":"_numTickets","type":"uint256"},{"name":"_numTicketsSold","type":"uint256"},{"name":"_lastSaleTimestamp","type":"uint256"},{"name":"_ticketPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tickets","type":"uint256[]"},{"name":"_mark","type":"uint256"},{"name":"_affiliate","type":"uint256"}],"name":"buyTickets","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"int256"},{"name":"_ticket","type":"uint256"}],"name":"getTicketOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_steps","type":"uint256"}],"name":"finalizeLottery","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastSaleTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_btcRelay","type":"address"},{"name":"_escrow","type":"address"},{"name":"_affiliateNetwork","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"mark","type":"uint256"},{"indexed":false,"name":"reason","type":"uint8"}],"name":"PurchaseFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"buyer","type":"address"},{"indexed":false,"name":"mark","type":"uint256"}],"name":"PurchaseSuccessful","type":"event"}]