Hey,
Today I am going to deploy the first AT use case: The Lottery AT.
I created a new account ( BURST-2Z98-XJU6-A2UA-FDKZP ), which will be used to send funds to the Lottery without participating in the draw. That way we can "kickstart" the lottery with an amount for the first draw to create more interest and winnings for the winner of the first decentralized lottery using AT. So any funds send to that address will be send back to Lottery AT account.
I am thinking the ticket size to cost 2000 burst. The lottery fees for processing the txs are about 15burst. So the final amount to participate to the lottery will be 2015 burst. If you think the ticket amount is too big or too small please say so.
The lottery will pay the winner the total worth of tickets purchased approx. every 1 week plus all extra that were sent to the special address to help seed the Lottery payout
When participating to the lottery, the AT will create a random ticket for you after 15 blocks. The ticket is sent back to the participant through a normal tx with the ticket ( in hex format ) included as a message. Due to a limitation of the AT txs only one ticket can be send back as a message to each participant per block, although if you send more in one block the AT always draws a ticket for each different tx, so that limitation does not mean you will not get more tickets per block per tx if you make multiple purchases.
I created a .html file which needs to be copied under the directory /html/ui/ inside burst folder. After you copy the html file you can use the browser to access it (
http://localhost:8125/atlotteries.html ). The html displays the lottery state (current winner account, total current winnings e.t.c) and provides also a button for quick ticket purchase.
Here is a screenshot of the resulted .html :
https://i.imgur.com/Pz8H2SQ.png If you are using
http://localhost:8125 to access your burst wallet then download this version:
https://mega.co.nz/#!KcZiTBBS!V5SobUhbDGu7Dcw2un1jGszIM3Scl0e3feK9wduKPlU
else if you are using
http://127.0.0.1:8125 to access burst wallet this version:
https://mega.co.nz/#!GBhwCTAD!NucXtJh7o9h-4R_gJafnY7xVlgbKJ5IEZ0tA7AYadyM
Also here you can see the lottery's code that will be deployed here :
http://pastebin.com/xiDdMzEGRegards
- vbcs
Now when the blockchain seems alright, don't forget to participate in the LuckyAT, BURST's completely decentralized Lottery! As of now the winner will get more than 46,000 BURST, but the sum will increase as tickets are bought.
Just follow vbcs' instruction and you can participate; would you like more information on LuckyAT and Smart Contract, see our recent press releases (where the Sources give important additional knowledge):
http://burstcoin.info/sc/TheLotteryCase.pdfhttp://burstcoin.info/SmartContracts.pdfRemember, only we who buy tickets decides how much the LuckyAT's winning sum will be - there is no regulation, no cheating, no taxes, just fair - and a bit of luck