tx · A8HZAQX2WVDVxwSBZwzhLxbL3kw3DWPPe9gHAoa2MVQt

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.07.29 13:52 [607267] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "A8HZAQX2WVDVxwSBZwzhLxbL3kw3DWPPe9gHAoa2MVQt", "fee": 1400000, "feeAssetId": null, "timestamp": 1564397604307, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "dGaAR218gaRjj1TYBpCUSz2i9so73KU3ZUaRZN8r2dXuBupmP8hcesW6Jr6seGtMxRREpD1NxugxvpePjiZ7bF5" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAIAAAAGdGlja2V0AAAABXJlZmVyBAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAEEAAAABHVzZXIJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIEAAAAB2lzcmVmZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAR1c2VyAgAAAARfcmVmAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAIc2V0cmVmZXIDCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgUAAAAFcmVmZXIJAQA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rQeQ==", "chainId": 84, "height": 607267, "spentComplexity": 0 } View: original | compacted Prev: BVLwd5hnBVtxd9z9GfqAd9YfJhZSCirH3SGTbtHBBCdc Next: 69mPwmhcNQ7yrdPBteCGAjZVYQ3cGA7vFfZL6ShtDEGt Diff:
OldNewDifferences
1212 1
1313 }
1414 let user = toString(inv.caller)
15- let setrefer = DataEntry((user + "_ref"), refer)
15+ let isrefer = match getString(this, (user + "_ref")) {
16+ case a: String =>
17+ a
18+ case _ =>
19+ ""
20+ }
21+ let setrefer = if ((isrefer == ""))
22+ then DataEntry((user + "_ref"), refer)
23+ else DataEntry((user + "_ref"), isrefer)
1624 let currentTicketcount = match getInteger(this, "ticketcount") {
1725 case a: Int =>
1826 a
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)
15- let setrefer = DataEntry((user + "_ref"), refer)
15+ let isrefer = match getString(this, (user + "_ref")) {
16+ case a: String =>
17+ a
18+ case _ =>
19+ ""
20+ }
21+ let setrefer = if ((isrefer == ""))
22+ then DataEntry((user + "_ref"), refer)
23+ else DataEntry((user + "_ref"), isrefer)
1624 let currentTicketcount = match getInteger(this, "ticketcount") {
1725 case a: Int =>
1826 a
1927 case _ =>
2028 0
2129 }
2230 let newTicketcount = (currentTicketcount + 1)
2331 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
2432 if ((numberround == 1))
2533 then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
2634 else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer])
2735 }
2836
2937

github/deemru/w8io/169f3d6 
60.79 ms