tx · 9UEemAEb4v2dW4VaEFQ7wzHDpmEhkn5ELAGaMjtReyod
3N4Ez9CB4yK1rgE8rezTEqNp77egqT9mWSM: -0.01000000 Waves
2022.05.28 23:19 [2071994] smart account 3N4Ez9CB4yK1rgE8rezTEqNp77egqT9mWSM > SELF 0.00000000 Waves
{
"type": 13,
"id": "9UEemAEb4v2dW4VaEFQ7wzHDpmEhkn5ELAGaMjtReyod",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653769209495,
"version": 2,
"chainId": 84,
"sender": "3N4Ez9CB4yK1rgE8rezTEqNp77egqT9mWSM",
"senderPublicKey": "483MxoikV3ZhGhnDEG8EvxJvFR57gFgjWeLXiRajiCk5",
"proofs": [
"2ZGNVyp369Kix1sYUv99sTnXyVYUvd53JFNYXVeJexHUsUE4Ei4tfWb61u6jjn2k9tVrm8ASo1F3v273XJUyiYs"
],
"script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0AQAAAAxXYXZlc0xvdHRvVjIJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CQAB9wAAAAEFAAAABHJhbmQBAAAACnN0YXJ0TG90dG8AAAABAAAAA2ludgQAAAAJcGxheUxpbWl0AAAAAAAAAABkBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAANpbnYAAAAHcGF5bWVudAQAAAAIcmFuZGhhc2gJAQAAAApyYW5kb21pemVyAAAAAQUAAAADaW52BAAAAARVbml0AQAAAAxXYXZlc0xvdHRvVjIEAAAAC3dpblRyYW5zZmVyCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAANpbnYAAAAGY2FsbGVyCQAAaAAAAAIIBQAAAAdwYXltZW50AAAABmFtb3VudAAAAAAAAAAAAgUAAAAEVW5pdAUAAAADbmlsBAAAAA13cml0ZUxhc3RQbGF5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhsYXN0UGxheQUAAAAIcmFuZGhhc2gFAAAAA25pbAMJAABmAAAAAgAAAAAAAAABLAkAAGoAAAACCQAEsQAAAAEFAAAACHJhbmRoYXNoAAAAAAAAAAPoCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQUAAAALd2luVHJhbnNmZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAACAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAANpbnYBAAAAB2RlZmF1bHQAAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAAA4GS89",
"height": 2071994,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4SbCziqSrgNkzeSx3wynATbV6c1fCqikmau8YM9m2T8a
Next: 5bvkosFZ6XFj5LTrDUujZncAssPtbCcnmiAzMMX2uqee
Diff:
Old | New | | Differences |
---|
22 | 22 | | let h = 100 |
---|
23 | 23 | | let i = extract(b.payment) |
---|
24 | 24 | | let j = a(b) |
---|
25 | | - | let k = TransferSet([ScriptTransfer(b.caller, (i.amount * 2), unit)]) |
---|
26 | | - | let l = WriteSet([DataEntry("lastPlay", j)]) |
---|
| 25 | + | let k = base58'2ee4oFDYriWJ9EMeR' |
---|
| 26 | + | let l = TransferSet([ScriptTransfer(b.caller, (i.amount * 2), k)]) |
---|
| 27 | + | let m = WriteSet([DataEntry("lastPlay", j)]) |
---|
27 | 28 | | if ((300 > (toInt(j) % 1000))) |
---|
28 | | - | then ScriptResult(l, k) |
---|
29 | | - | else ScriptResult(l, TransferSet(nil)) |
---|
| 29 | + | then ScriptResult(m, l) |
---|
| 30 | + | else ScriptResult(m, TransferSet(nil)) |
---|
30 | 31 | | } |
---|
31 | 32 | | |
---|
32 | 33 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = { |
---|
6 | 6 | | let d = getBinary(this, "lastPlay") |
---|
7 | 7 | | if ($isInstanceOf(d, "ByteVector")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let e = d |
---|
10 | 10 | | e |
---|
11 | 11 | | } |
---|
12 | 12 | | else if ($isInstanceOf(d, "Unit")) |
---|
13 | 13 | | then base58'2ee4oFDYriWJ9EMeR' |
---|
14 | 14 | | else throw("Match error") |
---|
15 | 15 | | } |
---|
16 | 16 | | let f = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) |
---|
17 | 17 | | sha256(f) |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | func g (b) = { |
---|
22 | 22 | | let h = 100 |
---|
23 | 23 | | let i = extract(b.payment) |
---|
24 | 24 | | let j = a(b) |
---|
25 | | - | let k = TransferSet([ScriptTransfer(b.caller, (i.amount * 2), unit)]) |
---|
26 | | - | let l = WriteSet([DataEntry("lastPlay", j)]) |
---|
| 25 | + | let k = base58'2ee4oFDYriWJ9EMeR' |
---|
| 26 | + | let l = TransferSet([ScriptTransfer(b.caller, (i.amount * 2), k)]) |
---|
| 27 | + | let m = WriteSet([DataEntry("lastPlay", j)]) |
---|
27 | 28 | | if ((300 > (toInt(j) % 1000))) |
---|
28 | | - | then ScriptResult(l, k) |
---|
29 | | - | else ScriptResult(l, TransferSet(nil)) |
---|
| 29 | + | then ScriptResult(m, l) |
---|
| 30 | + | else ScriptResult(m, TransferSet(nil)) |
---|
30 | 31 | | } |
---|
31 | 32 | | |
---|
32 | 33 | | |
---|
33 | 34 | | @Callable(b) |
---|
34 | 35 | | func lotto () = g(b) |
---|
35 | 36 | | |
---|
36 | 37 | | |
---|
37 | 38 | | |
---|
38 | 39 | | @Callable(b) |
---|
39 | 40 | | func default () = g(b) |
---|
40 | 41 | | |
---|
41 | 42 | | |
---|