tx · jwwxb5UZv3Z2UABc9de2aZeFQW5fgGbftuqxhSFGKLU
3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9: -0.01000000 Waves
2019.07.27 14:57 [604436] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "jwwxb5UZv3Z2UABc9de2aZeFQW5fgGbftuqxhSFGKLU",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1564228602494,
"version": 1,
"sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9",
"senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW",
"proofs": [
"aBzMLncSVG93PaiVPRGYD7VrkTvgb9aDvwrRM65KveC4ZPou4Gr8kjakuj4kipdmJ41RTHtzbGtiGx3EhuMxNQD"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAANpbnYBAAAACXBsYXliaW5nbwAAAAEAAAAGdGlja2V0BAAAAAtudW1iZXJyb3VuZAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA1udW1iZXJvZnJvdW5kAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAADm5ld251bWJlcnJvdW5kCQAAZAAAAAIFAAAAC251bWJlcnJvdW5kAAAAAAAAAAABBAAAAAR1c2VyCQAEJQAAAAEIBQAAAANpbnYAAAAGY2FsbGVyBAAAABJjdXJyZW50VGlja2V0Y291bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAALdGlja2V0Y291bnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAObmV3VGlja2V0Y291bnQJAABkAAAAAgUAAAASY3VycmVudFRpY2tldGNvdW50AAAAAAAAAAABBAAAABBjdXJyZW50a2V5dGlja2V0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAHdGlja2V0XwkAAaQAAAABBQAAAA5uZXdudW1iZXJyb3VuZAIAAAABXwkAAaQAAAABBQAAAA5uZXdUaWNrZXRjb3VudAIAAAABXwUAAAAEdXNlcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQY3VycmVudGtleXRpY2tldAUAAAAGdGlja2V0BQAAAANuaWwAAAAAGkAa+Q==",
"chainId": 84,
"height": 604436,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: GAAjPcc3HxXnaFMFQ3wCftfYXQnfRsRuhi4hRKvpRAMu
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(inv) |
---|
| 7 | + | func playbingo (ticket) = { |
---|
| 8 | + | let numberround = match getInteger(this, "numberofround") { |
---|
| 9 | + | case a: Int => |
---|
| 10 | + | a |
---|
| 11 | + | case _ => |
---|
| 12 | + | 0 |
---|
| 13 | + | } |
---|
| 14 | + | let newnumberround = (numberround + 1) |
---|
| 15 | + | let user = toString(inv.caller) |
---|
| 16 | + | let currentTicketcount = match getInteger(this, "ticketcount") { |
---|
| 17 | + | case a: Int => |
---|
| 18 | + | a |
---|
| 19 | + | case _ => |
---|
| 20 | + | 0 |
---|
| 21 | + | } |
---|
| 22 | + | let newTicketcount = (currentTicketcount + 1) |
---|
| 23 | + | let currentkeyticket = ((((("ticket_" + toString(newnumberround)) + "_") + toString(newTicketcount)) + "_") + user) |
---|
| 24 | + | WriteSet([DataEntry(currentkeyticket, ticket)]) |
---|
| 25 | + | } |
---|
| 26 | + | |
---|
| 27 | + | |
---|