tx · 69mPwmhcNQ7yrdPBteCGAjZVYQ3cGA7vFfZL6ShtDEGt 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9: -0.01400000 Waves 2019.07.29 18:44 [607574] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves
{ "type": 13, "id": "69mPwmhcNQ7yrdPBteCGAjZVYQ3cGA7vFfZL6ShtDEGt", "fee": 1400000, "feeAssetId": null, "timestamp": 1564415073978, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "9oF5gBLUNwQGUhMnkRmmcpG4AnFkmXCGvozUzVQGqnr7WjPeLNnjbAbwSMearmsDXZVyAMBqSVYDHnPhfpEowxU" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAIAAAAGdGlja2V0AAAABXJlZmVyBAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAEEAAAABHVzZXIJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIEAAAAB2lzcmVmZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAR1c2VyAgAAAARfcmVmAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAIc2V0cmVmZXIDCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgUAAAAFcmVmZXIJ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nRyeQAAAAIFAAAAEGN1cnJlbnRrZXl0aWNrZXQFAAAABnRpY2tldAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALdGlja2V0Y291bnQFAAAADm5ld1RpY2tldGNvdW50CQAETAAAAAIFAAAACHNldHJlZmVyBQAAAANuaWwAAAAARzsFzQ==", "chainId": 84, "height": 607574, "spentComplexity": 0 } View: original | compacted Prev: A8HZAQX2WVDVxwSBZwzhLxbL3kw3DWPPe9gHAoa2MVQt Next: 8JNG5aMybu5EbN6wHHUTFwLFcwnRNKzNqPyEYPs7DtsJ Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | } | |
30 | 30 | let newTicketcount = (currentTicketcount + 1) | |
31 | 31 | let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user) | |
32 | + | let nextround = if ((newTicketcount == 20)) | |
33 | + | then DataEntry("numberofround", (numberround + 1)) | |
34 | + | else nil | |
32 | 35 | if ((numberround == 1)) | |
33 | 36 | then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) | |
34 | 37 | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(inv) | |
7 | 7 | func playbingo (ticket,refer) = { | |
8 | 8 | let numberround = match getInteger(this, "numberofround") { | |
9 | 9 | case a: Int => | |
10 | 10 | a | |
11 | 11 | case _ => | |
12 | 12 | 1 | |
13 | 13 | } | |
14 | 14 | let user = toString(inv.caller) | |
15 | 15 | let isrefer = match getString(this, (user + "_ref")) { | |
16 | 16 | case a: String => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | "" | |
20 | 20 | } | |
21 | 21 | let setrefer = if ((isrefer == "")) | |
22 | 22 | then DataEntry((user + "_ref"), refer) | |
23 | 23 | else DataEntry((user + "_ref"), isrefer) | |
24 | 24 | let currentTicketcount = match getInteger(this, "ticketcount") { | |
25 | 25 | case a: Int => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | 0 | |
29 | 29 | } | |
30 | 30 | let newTicketcount = (currentTicketcount + 1) | |
31 | 31 | let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user) | |
32 | + | let nextround = if ((newTicketcount == 20)) | |
33 | + | then DataEntry("numberofround", (numberround + 1)) | |
34 | + | else nil | |
32 | 35 | if ((numberround == 1)) | |
33 | 36 | then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) | |
34 | 37 | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) | |
35 | 38 | } | |
36 | 39 | ||
37 | 40 |
github/deemru/w8io/169f3d6 53.58 ms ◑