tx · A9XeDqvLiXf7hDH5KuMqdbEJfd8nbsRPYgQDPZ6hJAQ5

3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE:  -0.01000000 Waves

2020.10.03 21:32 [1204751] smart account 3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE > SELF 0.00000000 Waves

{ "type": 13, "id": "A9XeDqvLiXf7hDH5KuMqdbEJfd8nbsRPYgQDPZ6hJAQ5", "fee": 1000000, "feeAssetId": null, "timestamp": 1601749872206, "version": 2, "chainId": 84, "sender": "3N9rn6oHDHVvfENDBwYm5P2LGuQkBLL4sVE", "senderPublicKey": "8dXboB91BfUTr4CrHZCqQR1g5SPMGtAQKRGFmPtcokrZ", "proofs": [ "oZgQUVk5arom3Y94WhTscwVgvY6esN5b6KbAB895RhVP7u1JfGDQiuQx9DShoqneCbELpoeusrj1MzDokru5Jdu" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAFhBQAAAAckbWF0Y2gwAQAAAAxXYXZlc0xvdHRvVjIJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIB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hyYW5kaGFzaAAAAAAAAAAD6AkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAADXdyaXRlTGFzdFBsYXkFAAAAC3dpblRyYW5zZmVyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAgAAAANpbnYBAAAABWxvdHRvAAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAADaW52AQAAAAdkZWZhdWx0AAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAAA0VVOxA==", "height": 1204751, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HHswXFZ258qfg3V4edTCvf6Vp12MY9SiEBSrXMb4m9Lm Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = {
6+ let d = getBinary(this, "lastPlay")
7+ if ($isInstanceOf(d, "ByteVector"))
8+ then {
9+ let e = d
10+ e
11+ }
12+ else if ($isInstanceOf(d, "Unit"))
13+ then {
14+ let f = d
15+ base58'2ee4oFDYriWJ9EMeR'
16+ }
17+ else throw("Match error")
18+ }
19+ let g = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
20+ sha256(g)
21+ }
22+
23+
24+func h (b) = {
25+ let i = (wavesBalance(this) / 100)
26+ let j = extract(b.payment)
27+ if (!(isDefined(b.payment)))
28+ then throw("Should be with Payment in Waves")
29+ else if (isDefined(j.assetId))
30+ then throw("Payment should be in Waves")
31+ else if ((j.amount > i))
32+ then throw(("Payment should be less than " + toString(i)))
33+ else {
34+ let k = a(b)
35+ let l = TransferSet([ScriptTransfer(b.caller, ((j.amount * 190) / 100), unit)])
36+ let m = WriteSet([DataEntry("lastPlay", k)])
37+ if ((500 > (toInt(k) % 1000)))
38+ then ScriptResult(m, l)
39+ else ScriptResult(m, TransferSet(nil))
40+ }
41+ }
42+
43+
44+@Callable(b)
45+func lotto () = h(b)
46+
47+
48+
49+@Callable(b)
50+func default () = h(b)
51+
52+

github/deemru/w8io/169f3d6 
15.30 ms