tx · BaQqwX4aH7B2UPZjo9RZihEjpugvHK1trz2udKkUMr1p 3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE: -0.01870000 Waves 2020.10.04 01:16 [1204965] smart account 3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE > SELF 0.00000000 Waves
{ "type": 13, "id": "BaQqwX4aH7B2UPZjo9RZihEjpugvHK1trz2udKkUMr1p", "fee": 1870000, "feeAssetId": null, "timestamp": 1601763291671, "version": 2, "chainId": 84, "sender": "3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE", "senderPublicKey": "8dXboB91BfUTr4CrHZCqQR1g5SPMGtAQKRGFmPtcokrZ", "proofs": [ "4fG48LMc5UXf6XVAYMDNzUPbbyt9wdVqMXjGiC7wrruJy12M6JaBc3rxp6CwWYtck6YG8L8bMr5iu6cYQYd4zmEL" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAABFBsYXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQEAAAAAWEFAAAAByRtYXRjaDABAAAADFdhdmVzTG90dG9WMgkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAAEcmFuZAkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACCQAAywAAAAIFAAAACGxhc3RQbGF5CAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQIBQAAAANpbnYAAAAPY2FsbGVyUHVibGljS2V5CAUAAAAJbGFzdEJsb2NrAAAAE2dlbmVyYXRpb25TaWduYXR1cmUJAAGaAAAAAQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAAGaAAAAAQgFAAAACWxhc3RC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AAPoCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQUAAAALd2luVHJhbnNmZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAACAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAANpbnYBAAAAB2RlZmF1bHQAAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAABi+Do+", "height": 1204965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HHswXFZ258qfg3V4edTCvf6Vp12MY9SiEBSrXMb4m9Lm Next: none Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = { | |
6 | - | let d = getBinary(this, " | |
6 | + | let d = getBinary(this, "Play") | |
7 | 7 | if ($isInstanceOf(d, "ByteVector")) | |
8 | 8 | then { | |
9 | 9 | let e = d |
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 | - | let d = getBinary(this, " | |
6 | + | let d = getBinary(this, "Play") | |
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 { | |
14 | 14 | let f = d | |
15 | 15 | base58'2ee4oFDYriWJ9EMeR' | |
16 | 16 | } | |
17 | 17 | else throw("Match error") | |
18 | 18 | } | |
19 | 19 | let g = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
20 | 20 | sha256(g) | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func h (b) = { | |
25 | 25 | let i = (wavesBalance(this) / 100) | |
26 | 26 | let j = extract(b.payment) | |
27 | 27 | if (!(isDefined(b.payment))) | |
28 | 28 | then throw("Should be with Payment in Waves") | |
29 | 29 | else if (isDefined(j.assetId)) | |
30 | 30 | then throw("Payment should be in Waves") | |
31 | 31 | else if ((j.amount > i)) | |
32 | 32 | then throw(("Payment should be less than " + toString(i))) | |
33 | 33 | else { | |
34 | 34 | let k = a(b) | |
35 | 35 | let l = TransferSet([ScriptTransfer(b.caller, ((j.amount * 190) / 100), unit)]) | |
36 | 36 | let m = WriteSet([DataEntry("lastPlay", k)]) | |
37 | 37 | if ((500 > (toInt(k) % 1000))) | |
38 | 38 | then ScriptResult(m, l) | |
39 | 39 | else ScriptResult(m, TransferSet(nil)) | |
40 | 40 | } | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(b) | |
45 | 45 | func lotto () = h(b) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(b) | |
50 | 50 | func default () = h(b) | |
51 | 51 | ||
52 | 52 |
github/deemru/w8io/169f3d6 35.92 ms ◑