Burst Weekly Lottery AT (SmartContract)



  • Hi All,

    I've just started the second lottery written by ant.

    if you would like to enter send 50 burst to BURST-9XJV-PNE4-89GA-4ZP58 to join the lotterydoo
    tickets are 50 burst each. dont send less than this amount as it will just take it as a donation
    so to buy 2 tickets send 100 burst
    to buy 3 tickets send 150 burst. etc.

    ive tweaked the lottery to last 2520 blocks and should be over in 1 week.
    and repeats as soon as it finishes

    • 10% is rolled-over
    • 10% is the rake
    • 80% to winner

    http://lotto.lexitoshi.uk/

    Good Luck!
    Lex



  • @Lexicon is there always a winner or is there somekind of jackpot?



  • I need to try this out, looks exciting to me..A little flutter won't hurt..



  • @Daforce there is allways a winner. 10% of the jackpot is reserved for the next round 🙂

    there is 2'187.5 burst in the lotto so far



  • @Lexicon 4 Tickets please!-)

    any Idea why this is not showing up on https://wallet.nixxda.ninja:8125/atlotteries.html ?? @msgAnton told me once but I cant bloody remember!-/



  • @nixxda said in Burst Weekly Lottery AT (SmartContract):

    @Lexicon 4 Tickets please!-)

    any Idea why this is not showing up on https://wallet.nixxda.ninja:8125/atlotteries.html ?? @msgAnton told me once but I cant bloody remember!-/

    My lottery doesn't have the keyword lottery 😃



  • @msgAnton said in Burst Weekly Lottery AT (SmartContract):

    @nixxda said in Burst Weekly Lottery AT (SmartContract):

    @Lexicon 4 Tickets please!-)

    any Idea why this is not showing up on https://wallet.nixxda.ninja:8125/atlotteries.html ?? @msgAnton told me once but I cant bloody remember!-/

    My lottery doesn't have the keyword lottery 😃

    neither do the crowdfunds lol but they are still on the list 😕





  • @msgAnton this??: (my eyes!!)

    function getInfo(atId) {
                    if ($("#" + atId).is(":hidden")) {
                        $("#" + atId).show();
                        window.setInterval(function() {
                            getInfo(atId)
                        }, 10000);
                    }
                    jsonRequest = {
                        requestType: "getAT",
                        at: atId.toString()
                    }
                    $.ajax({
                        url: 'https://wallet.nixxda.ninja:8125/burst',
                        type: 'POST',
                        dataType: "json",
                        data: jsonRequest,
                        success: function(response, textStatus, jqXHR) {
    						if ( response.description.toLowerCase().indexOf('lucky') > -1 || response.name.toLowerCase().indexOf('lucky') > -1 || response.description.toLowerCase().indexOf('lottery') > -1 || response.name.toLowerCase().indexOf('lottery') > -1)
                            {
    						addToTable(response, atId)
    						}
                        }
                    });
                }
    

    yeah, that looks like it! thanks for helping a "lazy bastard"!-)



  • @nixxda

    yepp!



  • @nixxda add Lotto and we might have a winner would also be ace if we could exclude any containing the keyword crowdfund


  • admin

    @Lexicon what is "rake" ?

    You guys have coded an automatic roll-over of 10% ? This is awesome.



  • @Lexicon 'lotto' is still to general! it pulls all the testlottos as well!-) but 'scripted' did it I think!
    https://wallet.nixxda.ninja:8125/atlotteries.html shows the correct one right?! all others are gone.

    what "crowdfunds" are you talking about?? I dont see them!-)



  • but wait this only shows bs!-/ do I get the correct ID?? 2526167191156684315

    edit: set it to

    response.description.toLowerCase().indexOf('lotto') > -1 || response.name.toLowerCase().indexOf('lotto') > -1
    

    again! need correct ID to know if this thing even works!?



  • the burst discord crowdfund appeared in the list lol and a few others

    0_1490018791813_upload-946731c3-3b23-4534-b200-46f699e5aa5e

    0_1490018834166_upload-ebf29574-a4dc-4d71-82aa-daf01516c919

    @daWallet rake is the % to go to the creator of the AT. could also be called fee



  • @Lexicon @msgAnton First of all, thanks for this developments... I just bought 1 ticket and am planning to send some small donations as a token of my appreciation in a couple of days, so @msgAnton please send me your Burst Address (PM me if you want) so i can send something to you when i have some funds released from the loan i have in Polo... @Lexicon addy i already have 😉

    Can you guys share the code of this lottery (with the 10% roll-over feature) or share a way to disassemble the AT machine code? I tried the examine feature in http://burst.lexitoshi.uk/smartcontractor.html#examineats but it didn't do anything after i put the AT ID and hit the button... I also noticed a decompiler in @msgAnton but i didn't got it's purpose, maybe it's to read the machine data, idk...

    Also, I have been trying to understand how exactly the fees work for the AT be running, and i readed somewhere that @msgAnton wrote that it consumes 1 burst per line of code but that doesn't seem to be right, did you guys already really tracked this or it was something like it looks to be around 1 burst per line of code?



  • @gpedro said in Burst Weekly Lottery AT (SmartContract):

    @Lexicon @msgAnton First of all, thanks for this developments... I just bought 1 ticket and am planning to send some small donations as a token of my appreciation in a couple of days, so @msgAnton please send me your Burst Address (PM me if you want) so i can send something to you when i have some funds released from the loan i have in Polo... @Lexicon addy i already have 😉

    Can you guys share the code of this lottery (with the 10% roll-over feature) or share a way to disassemble the AT machine code? I tried the examine feature in http://burst.lexitoshi.uk/smartcontractor.html#examineats but it didn't do anything after i put the AT ID and hit the button... I also noticed a decompiler in @msgAnton but i didn't got it's purpose, maybe it's to read the machine data, idk...

    Also, I have been trying to understand how exactly the fees work for the AT be running, and i readed somewhere that @msgAnton wrote that it consumes 1 burst per line of code but that doesn't seem to be right, did you guys already really tracked this or it was something like it looks to be around 1 burst per line of code?

    Details can be found @ https://github.com/antonyip/BurstAT/wiki/0330-Lottery-Repeat-AT

    Working on a decompiler.. its a work in progress. what do u want to do with it?

    Fees are 0.1 Burst for normal code.
    1 burst for BurstAPI calls.

    BURST-YQFX-X5K7-UCER-8SMMW for moneh.



  • @msgAnton said in Burst Weekly Lottery AT (SmartContract):

    @gpedro said in Burst Weekly Lottery AT (SmartContract):

    @Lexicon @msgAnton First of all, thanks for this developments... I just bought 1 ticket and am planning to send some small donations as a token of my appreciation in a couple of days, so @msgAnton please send me your Burst Address (PM me if you want) so i can send something to you when i have some funds released from the loan i have in Polo... @Lexicon addy i already have 😉

    Can you guys share the code of this lottery (with the 10% roll-over feature) or share a way to disassemble the AT machine code? I tried the examine feature in http://burst.lexitoshi.uk/smartcontractor.html#examineats but it didn't do anything after i put the AT ID and hit the button... I also noticed a decompiler in @msgAnton but i didn't got it's purpose, maybe it's to read the machine data, idk...

    Also, I have been trying to understand how exactly the fees work for the AT be running, and i readed somewhere that @msgAnton wrote that it consumes 1 burst per line of code but that doesn't seem to be right, did you guys already really tracked this or it was something like it looks to be around 1 burst per line of code?

    Details can be found @ https://github.com/antonyip/BurstAT/wiki/0330-Lottery-Repeat-AT

    Working on a decompiler.. its a work in progress. what do u want to do with it?

    Fees are 0.1 Burst for normal code.
    1 burst for BurstAPI calls.

    BURST-YQFX-X5K7-UCER-8SMMW for moneh.

    Thanks for the code and the fees informations, that already sounds more accurate 😉

    Regarding the decompiler i wanted to be able to input the machine code and that it give me as output the code as you have in here so it can be possible to examine the ATs running... Keep up the good work ;P
    My problem is that i don't know how to code Assembly but i can read it with some effort xP

    Again, big thanks for your work, since you are the first in a long time trying to do something with AT coding, i've been waiting for long time for someone to be able to do something with it... Just sent you 250 burst and will have some more heading your way later 😉



  • @msgAnton @gpedro yeah we have put a fair amount of work into this. testing etc.

    hopefully the lottery at that's currently running will make back the burst that was spent testing as i sent ant over 10k+ burst to get started testing and creating these AT's.

    fingers crossed this lottery AT runs as planned. apparently the database only keeps 1440 blocks in the database and ive set the at to run for 2520 blocks. this might cause an issue or it might not. im leaning towards not cause the last lottery i ran was for 2520 blocks and it went off without a single issue.

    at least this way the funds for the lottery are going to go into development. and becomes more of an incentive for the developer.
    on the grand scheme of things though it doesn't work out to much. so far the lottery is on 2.5k and if we had that much in the pot every week we would get approximately 250 burst a week. which is pretty much nothing. and works out to taking 40 weeks to get the 10k back we put in for testing

    once this one has ended and the code is proven to work 100% i can imagine ill set up a few more and start an official burst lottery thread.



  • @Lexicon Once the tests are done i plan to launch at least one lottery too and i will gladly ask @msgAnton to edit it in a way that gives part of the fee to the Developpers... 😉

    @lexicon i will send you some love too when i have more funds available, since now i only have around 30 burst left in my account xP