tx · 8JNG5aMybu5EbN6wHHUTFwLFcwnRNKzNqPyEYPs7DtsJ

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.07.29 18:47 [607577] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "8JNG5aMybu5EbN6wHHUTFwLFcwnRNKzNqPyEYPs7DtsJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1564415241442, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "3QMgWYfhqjYitCPEvwaoMZcG6XLhrXMseVytyHc2s9nRnaJ2DNaXeg4Hhf2sfg75fs8KZQdGhj7RCYDG5PemniSv" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAIAAAAGdGlja2V0AAAABXJlZmVyBAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAEEAAAABHVzZXIJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIEAAAAB2lzcmVmZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAR1c2VyAgAAAARfcmVmAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAIc2V0cmVmZXIDCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgUAAAAFcmVmZX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QAETAAAAAIFAAAACW5leHRyb3VuZAUAAAADbmlsCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABBjdXJyZW50a2V5dGlja2V0BQAAAAZ0aWNrZXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAC3RpY2tldGNvdW50BQAAAA5uZXdUaWNrZXRjb3VudAkABEwAAAACBQAAAAhzZXRyZWZlcgkABEwAAAACBQAAAAluZXh0cm91bmQFAAAAA25pbAAAAADe/dJZ", "chainId": 84, "height": 607577, "spentComplexity": 0 } View: original | compacted Prev: 69mPwmhcNQ7yrdPBteCGAjZVYQ3cGA7vFfZL6ShtDEGt Next: 297jcJw6PCXqJF4M7MmdgTi4Sr4feagrCxe6QUreoXT3 Diff:
OldNewDifferences
2929 }
3030 let newTicketcount = (currentTicketcount + 1)
3131 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
32- let nextround = if ((newTicketcount == 20))
32+ let nextround = if ((newTicketcount == 25))
3333 then DataEntry("numberofround", (numberround + 1))
34- else nil
34+ else DataEntry("numberofround", numberround)
3535 if ((numberround == 1))
36- then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
37- else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
36+ then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer, nextround])
37+ else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer, nextround])
3838 }
3939
4040
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(inv)
77 func playbingo (ticket,refer) = {
88 let numberround = match getInteger(this, "numberofround") {
99 case a: Int =>
1010 a
1111 case _ =>
1212 1
1313 }
1414 let user = toString(inv.caller)
1515 let isrefer = match getString(this, (user + "_ref")) {
1616 case a: String =>
1717 a
1818 case _ =>
1919 ""
2020 }
2121 let setrefer = if ((isrefer == ""))
2222 then DataEntry((user + "_ref"), refer)
2323 else DataEntry((user + "_ref"), isrefer)
2424 let currentTicketcount = match getInteger(this, "ticketcount") {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030 let newTicketcount = (currentTicketcount + 1)
3131 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
32- let nextround = if ((newTicketcount == 20))
32+ let nextround = if ((newTicketcount == 25))
3333 then DataEntry("numberofround", (numberround + 1))
34- else nil
34+ else DataEntry("numberofround", numberround)
3535 if ((numberround == 1))
36- then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
37- else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
36+ then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer, nextround])
37+ else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer, nextround])
3838 }
3939
4040

github/deemru/w8io/026f985 
21.39 ms