tx · Do7G3xiPTW7ZDUPY811ex2PwMWHVhZHtyHSrN8CQ5tDD 3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY: -0.01000000 Waves 2023.06.22 23:04 [2634306] smart account 3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY > SELF 0.00000000 Waves
{ "type": 13, "id": "Do7G3xiPTW7ZDUPY811ex2PwMWHVhZHtyHSrN8CQ5tDD", "fee": 1000000, "feeAssetId": null, "timestamp": 1687464348191, "version": 2, "chainId": 84, "sender": "3Mxkh7f6KwxmC83NvQ71Mcpk7B7tXBCNsLY", "senderPublicKey": "8Smk6puynrZ8G4yMSKZVgBuNfK7XUwSyzhSL5RnbZjqP", "proofs": [ "5ePGnWooW7wRRKeLouBeRTprQ4mLyK9HGXJJKVGM9cxiBbrFYBZQyJQNCVHoLYLyH9KdU9ixA74NFcBA5XNkF4PX" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAABgAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBTdHJUb1N0cgAAAAIAAAAFYWNjdW0AAAAEbmV4dAkABEwAAAACBQAAAARuZXh0BQAAAAVhY2N1bQEAAAAJcGFpbnRPdmVyAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACB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BAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoAAAAAAAAAAAsAAAAAAAAAAAwAAAAAAAAAAA0AAAAAAAAAAA4AAAAAAAAAAA8AAAAAAAAAABAAAAAAAAAAABEAAAAAAAAAABIAAAAAAAAAABMAAAAAAAAAABQAAAAAAAAAABUAAAAAAAAAABYAAAAAAAAAABcAAAAAAAAAABgAAAAAAAAAABkAAAAAAAAAABoAAAAAAAAAABsAAAAAAAAAABwAAAAAAAAAAB0AAAAAAAAAAB4AAAAAAAAAAB8AAAAAAAAAACAAAAAAAAAAACEAAAAAAAAAACIAAAAAAAAAACMAAAAAAAAAACQAAAAAAAAAACUAAAAAAAAAACYAAAAAAAAAACcAAAAAAAAAACgAAAAAAAAAACkAAAAAAAAAACoAAAAAAAAAACsAAAAAAAAAACwAAAAAAAAAAC0AAAAAAAAAAC4AAAAAAAAAAC8AAAAAAAAAADAAAAAAAAAAADEAAAAAAAAAADIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAARsb2dfCQABpAAAAAEFAAAACG5ld0xvZ0lECQEAAAAXbGlzdEludENvbXByZXNzVG9TdHJpbmcAAAABBQAAAAZwaXhlbHMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABWxvZ0lEBQAAAAhuZXdMb2dJRAUAAAADbmlsAAAAAMiivg8=", "height": 2634306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJtsdqSJRiXFCyPMZULM1HN58F2kPVAW8gK63TTKJ1bQ Next: DaDfS9SGYxZ9YqB3hE4uQs3GZ4ek7AgsEA8AmwGzz8gY Diff:
Old | New | Differences | |
---|---|---|---|
61 | 61 | else throw("List size exceeds 50") | |
62 | 62 | ||
63 | 63 | $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))]) | |
64 | + | } ++ [StringEntry(("log_" + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 |
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 | 50 | let newLogID = (getLogID() + 1) | |
51 | 51 | ({ | |
52 | 52 | let $l = pixels | |
53 | 53 | let $s = size($l) | |
54 | 54 | let $acc0 = nil | |
55 | 55 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
56 | 56 | then $a | |
57 | 57 | else paintOver($a, $l[$i]) | |
58 | 58 | ||
59 | 59 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
60 | 60 | then $a | |
61 | 61 | else throw("List size exceeds 50") | |
62 | 62 | ||
63 | 63 | $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))]) | |
64 | + | } ++ [StringEntry(("log_" + toString(newLogID)), listIntCompressToString(pixels)), IntegerEntry("logID", newLogID)]) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 |
github/deemru/w8io/026f985 27.54 ms ◑