tx · 8HkohJJ5Xywe992GABsJVsgHqvs8YUpy93PUZZCM9yDS
3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9: -0.01400000 Waves
2019.07.29 13:38 [607255] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "8HkohJJ5Xywe992GABsJVsgHqvs8YUpy93PUZZCM9yDS",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564396729049,
"version": 1,
"sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9",
"senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW",
"proofs": [
"no94QgFyZuUxz1rn4eU3GKn4fwYzgfQnY9HmE6KWNYhWz5h1D6Q4fXXW8EpKy8j3j1yLwbfES2omiGRPDVhLq2W"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAIAAAAGdGlja2V0AAAABXJlZmVyBAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAEEAAAABHVzZXIJAAQlAAAAAQgFAAAAA2ludgAAAAZjYWxsZXIEAAAACHNldHJlZmVyCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAR1c2VyAgAAAARfcmVmBQAAAAVyZWZlcgQAAAASY3VycmVudFRpY2tldGNvdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAC3RpY2tldGNvdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAADm5ld1RpY2tldGNvdW50CQAAZAAAAAIFAAAAEmN1cnJlbnRUaWNrZXRjb3VudAAAAAAAAAAAAQQAAAAQY3VycmVudGtleXRpY2tldAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAB3RpY2tldF8JAAGkAAAAAQUAAAALbnVtYmVycm91bmQCAAAAAV8JAAGkAAAAAQUAAAAObmV3VGlja2V0Y291bnQCAAAAAV8FAAAABHVzZXIDCQAAAAAAAAIFAAAAC251bWJlcnJvdW5kAAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAA1udW1iZXJvZnJvdW5kBQAAAAtudW1iZXJyb3VuZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQY3VycmVudGtleXRpY2tldAUAAAAGdGlja2V0CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAt0aWNrZXRjb3VudAUAAAAObmV3VGlja2V0Y291bnQFAAAAA25pbAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQY3VycmVudGtleXRpY2tldAUAAAAGdGlja2V0CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAt0aWNrZXRjb3VudAUAAAAObmV3VGlja2V0Y291bnQJAARMAAAAAgUAAAAIc2V0cmVmZXIFAAAAA25pbAAAAACSxm7t",
"chainId": 84,
"height": 607255,
"spentComplexity": 0
}
View: original | compacted
Prev: 6KKnDV185c562yGspG9VmBWwKTWrebBnt1KzGhVhaRcd
Next: BVLwd5hnBVtxd9z9GfqAd9YfJhZSCirH3SGTbtHBBCdc
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(inv) |
---|
7 | | - | func playbingo (ticket) = { |
---|
| 7 | + | func playbingo (ticket,refer) = { |
---|
8 | 8 | | let numberround = match getInteger(this, "numberofround") { |
---|
9 | 9 | | case a: Int => |
---|
10 | 10 | | a |
---|
|
12 | 12 | | 1 |
---|
13 | 13 | | } |
---|
14 | 14 | | let user = toString(inv.caller) |
---|
| 15 | + | let setrefer = DataEntry((user + "_ref"), refer) |
---|
15 | 16 | | let currentTicketcount = match getInteger(this, "ticketcount") { |
---|
16 | 17 | | case a: Int => |
---|
17 | 18 | | a |
---|
|
22 | 23 | | let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user) |
---|
23 | 24 | | if ((numberround == 1)) |
---|
24 | 25 | | then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)]) |
---|
25 | | - | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)]) |
---|
| 26 | + | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) |
---|
26 | 27 | | } |
---|
27 | 28 | | |
---|
28 | 29 | | |
---|
Full:
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 | | - | func playbingo (ticket) = { |
---|
| 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 | + | let setrefer = DataEntry((user + "_ref"), refer) |
---|
15 | 16 | | let currentTicketcount = match getInteger(this, "ticketcount") { |
---|
16 | 17 | | case a: Int => |
---|
17 | 18 | | a |
---|
18 | 19 | | case _ => |
---|
19 | 20 | | 0 |
---|
20 | 21 | | } |
---|
21 | 22 | | let newTicketcount = (currentTicketcount + 1) |
---|
22 | 23 | | let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user) |
---|
23 | 24 | | if ((numberround == 1)) |
---|
24 | 25 | | then WriteSet([DataEntry("numberofround", numberround), DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)]) |
---|
25 | | - | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount)]) |
---|
| 26 | + | else WriteSet([DataEntry(currentkeyticket, ticket), DataEntry("ticketcount", newTicketcount), setrefer]) |
---|
26 | 27 | | } |
---|
27 | 28 | | |
---|
28 | 29 | | |
---|