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