tx · 7z78JiN3D8bQ7oJ4SqWSE6nnG8ZBHYQPKT9fyhbLtnyM 3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ: -0.01400000 Waves 2021.05.12 16:20 [1522510] smart account 3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ > SELF 0.00000000 Waves
{ "type": 13, "id": "7z78JiN3D8bQ7oJ4SqWSE6nnG8ZBHYQPKT9fyhbLtnyM", "fee": 1400000, "feeAssetId": null, "timestamp": 1620825651642, "version": 1, "sender": "3MpdJJV3WyZufiGHRtb7xbY2Vsc2pBFcJYZ", "senderPublicKey": "ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6", "proofs": [ "2bGZCcjCP7vgzvgNXqCvu8kPPUNZyMCht1faMrrYivbWejrEdaNswHzXuQ5pphPFxYGZgfhjqR82euZ1fmM16CpK" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAATAAAAABNnYW1lTWFzdGVyUHVibGljS2V5AQAAACCKqFcQ1VSNQa7ZONz4ZD59H7wLfuowVwcQ1qI/fK6ACwAAAAAKZGljZU51bWJlcgkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgAAAAAAAAAABgkABEwAAAACAAAAAAAAAAAHCQAETAAAAAIAAAAAAAAAAAgFAAAAA25pbAAAAAAJZ2FtZVRva2VuAQAAACCvQNOoGbkt3wVk9kpr+yD9dOUY7LBdGNCbLK5MVkSodQAAAAAJR0FNRVNUQVJUAAAAAAAAAAAAAAAAAA5HQU1FSU5QUk9HUkVTUwAAAAAAAAAAAQAAAAAMR0FNRUZJTklTSEVEAAAAAAAAAAACAAAAABBnYW1lQ291bnRlckxhYmVsAgAAAA1HX0dBTUVDT1VOVEVSAAAAABBnYW1lUGFzc0JldExhYmVsAgAAAAtCX1BBU1NCRV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IJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAOZ2FtZVN0YXRlTGFiZWwAAAABBQAAAAluZXdOdW1iZXIAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAABRnYW1lU3RhcnRIZWlnaHRMYWJlbAAAAAEFAAAACW5ld051bWJlcggFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAD2dhbWVTdW1TaGFMYWJlbAAAAAEFAAAABm51bWJlcgkAAlgAAAABCQAB9wAAAAEJAAJbAAAAAQUAAAAKcmFuZG9tSGFzaAUAAAADbmlsCQAAAgAAAAECAAAACUlOSVRfTkVFRAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUbBY7I=", "chainId": 84, "height": 1522510, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HGZFn7rV6tHwSaiDZumdBS9ewMxCTaQjkXWtC658STP3 Next: 3xoaxH8BrrwrnMmb1geJUsZ7eDLzfPRoN6VaqvpyT3v8 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'ALG9JVGNn9aCL68dbg1AmW6yDQv1b8EDLq99pQS8L1k6' | |
5 | 5 | ||
6 | 6 | let b = [1, 2, 3, 4, 5, 6, 7, 8] | |
7 | 7 | ||
8 | 8 | let c = base58'Co7gTLr7ZJvVKwToLpuZJqmkVecy5uwupYH6qCkKuhc8' | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = 2 | |
15 | 15 | ||
16 | 16 | let g = "G_GAMECOUNTER" | |
17 | 17 | ||
18 | 18 | let h = "B_PASSBETS_" | |
19 | 19 | ||
20 | 20 | let i = "G_CurrentPoint_" | |
21 | 21 | ||
22 | 22 | let j = 0 | |
23 | 23 | ||
24 | 24 | func k (l) = (l != a) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func m (n) = (("G_" + toString(n)) + "_STATE") | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func o (n) = ((("G_" + toString(n)) + "_") + "_SUMSHA") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (n) = ((("G_" + toString(n)) + "_") + "_STARTHEIGHT") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func q (n) = getInteger(this, m(n)) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func r (n) = getString(this, o(n)) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func s (n) = getInteger(this, p(n)) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func t () = getInteger(this, g) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func u (v) = b[(toInt(v) % 8)] | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(w) | |
52 | 52 | func initGame () = if (k(w.callerPublicKey)) | |
53 | 53 | then throw("initGame_FORBIDDEN") | |
54 | 54 | else { | |
55 | 55 | let x = t() | |
56 | 56 | if ($isInstanceOf(x, "Int")) | |
57 | 57 | then { | |
58 | 58 | let y = x | |
59 | 59 | throw("INIT_ALREADY_DONE") | |
60 | 60 | } | |
61 | 61 | else [IntegerEntry(g, 0)] | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(w) | |
67 | 67 | func startGame (v) = if (k(w.callerPublicKey)) | |
68 | 68 | then throw("startGame_FORBIDDEN") | |
69 | 69 | else { | |
70 | 70 | let x = t() | |
71 | 71 | if ($isInstanceOf(x, "Int")) | |
72 | 72 | then { | |
73 | 73 | let z = x | |
74 | 74 | let A = (z + 1) | |
75 | 75 | [IntegerEntry(g, A), IntegerEntry(m(A), 0), IntegerEntry(p(A), lastBlock.height), StringEntry(o(z), toBase58String(sha256(fromBase64String(v))))] | |
76 | 76 | } | |
77 | 77 | else throw("INIT_NEED") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | @Verifier(B) | |
82 | 82 | func C () = { | |
83 | 83 | let x = B | |
84 | 84 | sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) | |
85 | 85 | } | |
86 | 86 |
github/deemru/w8io/169f3d6 31.82 ms ◑