tx · 8B5gyE4XwtEsrQkbkryEdrt2vMfhyP6YncBNz4KKfkqS

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.07.28 13:42 [605803] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "8B5gyE4XwtEsrQkbkryEdrt2vMfhyP6YncBNz4KKfkqS", "fee": 1400000, "feeAssetId": null, "timestamp": 1564310606125, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "KW7cww8Ua1CoV2E1c1j5X9KFehFh2wcFZJMAM1MBKevUQqTBxmqffdZEDgx7sBCKpdGEWajCrMnxSAhoe32pb2Y" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAEAAAAGdGlja2V0BAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAEEAAAABHVzZXIJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIEAAAAEmN1cnJlbnRUaWNrZXRjb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAt0aWNrZXRjb3VudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAA5uZXdUaWNrZXRjb3VudAkAAGQAAAACBQAAABJjdXJyZW50VGlja2V0Y291bnQAAAAAAAAAAAEEAAAAEGN1cnJlbnRrZXl0aWNrZXQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAd0aWNrZXRfCQABpAAAAAEFAAAAC251bWJlcnJvdW5kAgAAAAFfCQABpAAAAAEFAAAADm5ld1RpY2tldGNvdW50AgAAAAFfBQAAAAR1c2VyAwkAAAAAAAACBQAAAAtudW1iZXJyb3VuZAAAAAAAAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAANbnVtYmVyb2Zyb3VuZAUAAAALbnVtYmVycm91bmQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEGN1cnJlbnRrZXl0aWNrZXQFAAAABnRpY2tldAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALdGlja2V0Y291bnQFAAAADm5ld1RpY2tldGNvdW50BQAAAANuaWwJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEGN1cnJlbnRrZXl0aWNrZXQFAAAABnRpY2tldAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALdGlja2V0Y291bnQFAAAADm5ld1RpY2tldGNvdW50BQAAAANuaWwAAAAA3FOdZg==", "chainId": 84, "height": 605803, "spentComplexity": 0 } View: original | compacted Prev: 9pLqcESdXfiT9Gg7TkarSWfURp5bMq2NnpE5srBiYqQF Next: 553qFfA9iJDos8NLZKyFmhhQrBi9455JNsmQJ7GV4joh Diff:
OldNewDifferences
2020 }
2121 let newTicketcount = (currentTicketcount + 1)
2222 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
23- WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
23+ if ((numberround == 0))
24+ then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
25+ else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
2426 }
2527
2628
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(inv)
77 func playbingo (ticket) = {
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 currentTicketcount = match getInteger(this, "ticketcount") {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 let newTicketcount = (currentTicketcount + 1)
2222 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
23- WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
23+ if ((numberround == 0))
24+ then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
25+ else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)])
2426 }
2527
2628

github/deemru/w8io/169f3d6 
28.68 ms