tx · 2WcKtfYpVXP8EmKGsLw67gidv9DiHjNXLeEVrC1afDyy

3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy:  -0.01000000 Waves

2022.03.27 19:30 [1982574] smart account 3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy > SELF 0.00000000 Waves

{ "type": 13, "id": "2WcKtfYpVXP8EmKGsLw67gidv9DiHjNXLeEVrC1afDyy", "fee": 1000000, "feeAssetId": null, "timestamp": 1648398613530, "version": 2, "chainId": 84, "sender": "3MySJyGK77d6FhzLNaVVQPXdd9a83bM3qDy", "senderPublicKey": "BfMBEE7fb4c1RcjEUzpvNjTpjoKMmDRef15igPkstvRm", "proofs": [ "2XUnvswV2UyR6DrPnsAepLhWzijPRcVAgxR1DTnHyeiCXdm9KchvftYGG6FJsvEkDmji8LxpV9KKmTun2VzKu7fz" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAARURVNUAAAAAAAAACcQAAAAAAAAAAAABgUAAAAEdW5pdAAAAAAAAAAAAAQAAAAHYXNzZXRJZAkABDgAAAABBQAAAAVhc3NldAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAAANiaW4BAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAEYm9vbAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA2ludAAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANzdHICAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAAANzdHIJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAdhc3NldElkAAAAAAAAAAABBwkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebRaDrM=", "height": 1982574, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5e8TdrNgTzX1AVkVCEb2cdCWaJgxskZqXsPZyLqDfgmX Next: 6kFw4Jzs7MRGxFJuhf7kVR5YDvTQxeozuLAWoxFjFYVb Full:
OldNewDifferences
1-{-# STDLIB_VERSION 3 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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)
4+
5+
6+@Callable(a)
7+func call () = {
8+ let b = Issue("Asset", "TEST", 10000, 0, true, unit, 0)
9+ let c = calculateAssetId(b)
10+[BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
1811 }
1912
2013
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-
14+@Verifier(d)
15+func e () = sigVerify(d.bodyBytes, d.proofs[0], d.senderPublicKey)
4116

github/deemru/w8io/169f3d6 
23.94 ms