tx · 5e8TdrNgTzX1AVkVCEb2cdCWaJgxskZqXsPZyLqDfgmX

3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy:  -0.01000000 Waves

2022.03.27 19:18 [1982561] smart account 3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy > SELF 0.00000000 Waves

{ "type": 13, "id": "5e8TdrNgTzX1AVkVCEb2cdCWaJgxskZqXsPZyLqDfgmX", "fee": 1000000, "feeAssetId": null, "timestamp": 1648397909886, "version": 2, "chainId": 84, "sender": "3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy", "senderPublicKey": "BfMBEE7fb4c1RcjEUzpvNjTpjoKMmDRef15igPkstvRm", "proofs": [ "WyMWncuDcsSrdaaEaDTUh5ZNYmrqzsnmJvrJKJHgx3ktMZzH7dJy5k2SD5yJVtasuoPqGU2Tp76w1iJUe5D7SxQ" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0AQAAAAxXYXZlc0xvdHRvVjIJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CQAB9wAAAAEFAAAABHJhbmQBAAAACnN0YXJ0TG90dG8AAAABAAAAA2ludgQAAAAJcGxheUxpbWl0CQAAaAAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABBQAAAAR0aGlzAAAAAAAAACcQBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAANpbnYAAAAHcGF5bWVudAQAAAAIcmFuZGhhc2gJAQAAAApyYW5kb21pemVyAAAAAQUAAAADaW52BAAAAAt3aW5UcmFuc2ZlcgkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAADaW52AAAABmNhbGxlcgkAAGkAAAACCQAAaAAAAAIIBQAAAAdwYXltZW50AAAABmFtb3VudAAAAAAAAAAAAQAAAAAAAAAnEAUAAAAEdW5pdAUAAAADbmlsBAAAAA13cml0ZUxhc3RQbGF5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhsYXN0UGxheQUAAAAIcmFuZGhhc2gFAAAAA25pbAMJAABmAAAAAgAAAAAAAAAAZAkAAGoAAAACCQAEsQAAAAEFAAAACHJhbmRoYXNoAAAAAAAAAAPoCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQUAAAALd2luVHJhbnNmZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAACAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAANpbnYBAAAAB2RlZmF1bHQAAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAADhTAQ0", "height": 1982561, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2WcKtfYpVXP8EmKGsLw67gidv9DiHjNXLeEVrC1afDyy 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 base58'2ee4oFDYriWJ9EMeR'
14+ else throw("Match error")
15+ }
16+ let f = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
17+ sha256(f)
18+ }
19+
20+
21+func g (b) = {
22+ let h = (wavesBalance(this) * 10000)
23+ let i = extract(b.payment)
24+ let j = a(b)
25+ let k = TransferSet([ScriptTransfer(b.caller, ((i.amount * 1) / 10000), unit)])
26+ let l = WriteSet([DataEntry("lastPlay", j)])
27+ if ((100 > (toInt(j) % 1000)))
28+ then ScriptResult(l, k)
29+ else ScriptResult(l, TransferSet(nil))
30+ }
31+
32+
33+@Callable(b)
34+func lotto () = g(b)
35+
36+
37+
38+@Callable(b)
39+func default () = g(b)
40+
41+

github/deemru/w8io/169f3d6 
13.88 ms