tx · ADFEEsnMVXA7jPEGjtXaAFRvZNfNdNtZBJZCf79QWSXL 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T: -0.01000000 Waves 2023.06.22 20:34 [2634150] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves
{ "type": 13, "id": "ADFEEsnMVXA7jPEGjtXaAFRvZNfNdNtZBJZCf79QWSXL", "fee": 1000000, "feeAssetId": null, "timestamp": 1687455282825, "version": 2, "chainId": 84, "sender": "3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T", "senderPublicKey": "97sWz4UZWijkagGprhucQHR7b7nN6FfojMELnzuFEyY1", "proofs": [ "2tH9LFJioxkoyATUN8fcAa6AZgTx8rvoi5Ko7fbBvhnyHuUSoYbzDA9u9tqv2LvS8b1PZr7DXxhhSkQY5yp3HwR1" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAABAAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBJbnRUb1N1bQAAAAIAAAAFYWNjdW0AAAAEbmV4dAkAASwAAAACBQAAAAVhY2N1bQUAAAAEbmV4dAEAAAAPcGl4ZWxWYWxpZGF0aW9yAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACBQAAAARuZX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AACMAAAAAAAAAACQAAAAAAAAAACUAAAAAAAAAACYAAAAAAAAAACcAAAAAAAAAACgAAAAAAAAAACkAAAAAAAAAACoAAAAAAAAAACsAAAAAAAAAACwAAAAAAAAAAC0AAAAAAAAAAC4AAAAAAAAAAC8AAAAAAAAAADAAAAAAAAAAADEAAAAAAAAAADIAAAAAsH915g==", "height": 2634150, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3gMH9Bjz2Z9udtssN99w4D19WXGLt5BVSHkNnVhSAn85 Next: 9ARFJNDMavXo5RvijK54hh1UczwnHWehMtnyAQXCz114 Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | ||
9 | 9 | func pixelValidatior (accum,next) = { | |
10 | 10 | let array = split(next, "-") | |
11 | - | if (if ( | |
11 | + | if (if (accum) | |
12 | 12 | then containsElement(colorList, array[0]) | |
13 | - | else false) | |
14 | - | then (100 > parseIntValue(array[1])) | |
15 | - | else false) | |
16 | - | then (100 > parseIntValue(array[2])) | |
17 | 13 | else false) | |
18 | 14 | then true | |
19 | 15 | else false |
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 mapIntToSum (accum,next) = (accum + next) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func pixelValidatior (accum,next) = { | |
10 | 10 | let array = split(next, "-") | |
11 | - | if (if ( | |
11 | + | if (if (accum) | |
12 | 12 | then containsElement(colorList, array[0]) | |
13 | - | else false) | |
14 | - | then (100 > parseIntValue(array[1])) | |
15 | - | else false) | |
16 | - | then (100 > parseIntValue(array[2])) | |
17 | 13 | else false) | |
18 | 14 | then true | |
19 | 15 | else false | |
20 | 16 | } | |
21 | 17 | ||
22 | 18 | ||
23 | 19 | func paintOver (accum,next) = { | |
24 | 20 | let array = split(next, "-") | |
25 | 21 | (accum ++ [StringEntry(((array[1] + "-") + array[2]), array[0])]) | |
26 | 22 | } | |
27 | 23 | ||
28 | 24 | ||
29 | 25 | @Callable(i) | |
30 | 26 | func draw (pixels) = { | |
31 | 27 | let textPixelsList = ["red-17-67", "blue-18-67", "red-19-67", "green-20-67"] | |
32 | 28 | let isValid = { | |
33 | 29 | let $l = textPixelsList | |
34 | 30 | let $s = size($l) | |
35 | 31 | let $acc0 = true | |
36 | 32 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
37 | 33 | then $a | |
38 | 34 | else pixelValidatior($a, $l[$i]) | |
39 | 35 | ||
40 | 36 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
41 | 37 | then $a | |
42 | 38 | else throw("List size exceeds 10") | |
43 | 39 | ||
44 | 40 | $f0_2($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) | |
45 | 41 | } | |
46 | 42 | if (isValid) | |
47 | 43 | then throw("Is't walid") | |
48 | 44 | else { | |
49 | 45 | let $l = textPixelsList | |
50 | 46 | let $s = size($l) | |
51 | 47 | let $acc0 = nil | |
52 | 48 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
53 | 49 | then $a | |
54 | 50 | else paintOver($a, $l[$i]) | |
55 | 51 | ||
56 | 52 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
57 | 53 | then $a | |
58 | 54 | else throw("List size exceeds 50") | |
59 | 55 | ||
60 | 56 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_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) | |
61 | 57 | } | |
62 | 58 | } | |
63 | 59 | ||
64 | 60 |
github/deemru/w8io/026f985 25.73 ms ◑