tx · DaDfS9SGYxZ9YqB3hE4uQs3GZ4ek7AgsEA8AmwGzz8gY 3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY: -0.01000000 Waves 2023.06.23 00:52 [2634413] smart account 3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY > SELF 0.00000000 Waves
{ "type": 13, "id": "DaDfS9SGYxZ9YqB3hE4uQs3GZ4ek7AgsEA8AmwGzz8gY", "fee": 1000000, "feeAssetId": null, "timestamp": 1687470768796, "version": 2, "chainId": 84, "sender": "3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY", "senderPublicKey": "8Smk6puynrZ8G4yMSKZVgBuNfK7XUwSyzhSL5RnbZjqP", "proofs": [ "yYx7th5kqjkSzjC6EZH7N6imCbKW5ZpXydkpJBP9MEPqnGBUsnfqQgRBk4SwpMbActCYWgckwE5MkjytL21TM6Z" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAABgAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBTdHJUb1N0cgAAAAIAAAAFYWNjdW0AAAAEbmV4dAkABEwAAAACBQAAAARuZXh0BQAAAAVhY2N1bQEAAAAJcGFpbnRPdmVyAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACB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FbG9nSUQFAAAACG5ld0xvZ0lEBQAAAANuaWwAAAAAsEM/pA==", "height": 2634413, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Do7G3xiPTW7ZDUPY811ex2PwMWHVhZHtyHSrN8CQ5tDD Next: H76z2HMFvRDKjJD8wK7jTGmhvAqPxc8wqCXcBZVJsKXN Diff:
Old | New | Differences | |
---|---|---|---|
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | func draw (pixels) = { | |
50 | + | let timestamp = match blockInfoByHeight(height) { | |
51 | + | case block: BlockInfo => | |
52 | + | block.timestamp | |
53 | + | case _ => | |
54 | + | 0 | |
55 | + | } | |
50 | 56 | let newLogID = (getLogID() + 1) | |
51 | 57 | ({ | |
52 | 58 | let $l = pixels | |
61 | 67 | else throw("List size exceeds 50") | |
62 | 68 | ||
63 | 69 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
64 | - | } ++ [StringEntry(("log_" + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
70 | + | } ++ [StringEntry(((("log_" + toString(timestamp)) + "_") + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
65 | 71 | } | |
66 | 72 | ||
67 | 73 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let colorList = ["aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon", "navy", "olive", "purple", "red", "silver", "teal", "white", "yellow"] | |
5 | 5 | ||
6 | 6 | func mapStrToStr (accum,next) = next :: accum | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func paintOver (accum,next) = { | |
10 | 10 | let array = split(next, "-") | |
11 | 11 | if (if (if (containsElement(colorList, array[0])) | |
12 | 12 | then (100 > parseIntValue(array[1])) | |
13 | 13 | else false) | |
14 | 14 | then (100 > parseIntValue(array[2])) | |
15 | 15 | else false) | |
16 | 16 | then (accum ++ [StringEntry(((array[1] + "-") + array[2]), array[0])]) | |
17 | 17 | else throw("Is't walid") | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func getLogID () = { | |
22 | 22 | let logID = getInteger("logID") | |
23 | 23 | if ((logID != unit)) | |
24 | 24 | then getIntegerValue("logID") | |
25 | 25 | else 0 | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func listStringToListString (arr) = { | |
30 | 30 | let $l = arr | |
31 | 31 | let $s = size($l) | |
32 | 32 | let $acc0 = nil | |
33 | 33 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
34 | 34 | then $a | |
35 | 35 | else mapStrToStr($a, $l[$i]) | |
36 | 36 | ||
37 | 37 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
38 | 38 | then $a | |
39 | 39 | else throw("List size exceeds 50") | |
40 | 40 | ||
41 | 41 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func listIntCompressToString (arr) = makeString(listStringToListString(arr), "|") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | func draw (pixels) = { | |
50 | + | let timestamp = match blockInfoByHeight(height) { | |
51 | + | case block: BlockInfo => | |
52 | + | block.timestamp | |
53 | + | case _ => | |
54 | + | 0 | |
55 | + | } | |
50 | 56 | let newLogID = (getLogID() + 1) | |
51 | 57 | ({ | |
52 | 58 | let $l = pixels | |
53 | 59 | let $s = size($l) | |
54 | 60 | let $acc0 = nil | |
55 | 61 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
56 | 62 | then $a | |
57 | 63 | else paintOver($a, $l[$i]) | |
58 | 64 | ||
59 | 65 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
60 | 66 | then $a | |
61 | 67 | else throw("List size exceeds 50") | |
62 | 68 | ||
63 | 69 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
64 | - | } ++ [StringEntry(("log_" + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
70 | + | } ++ [StringEntry(((("log_" + toString(timestamp)) + "_") + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
65 | 71 | } | |
66 | 72 | ||
67 | 73 |
github/deemru/w8io/026f985 29.97 ms ◑