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:AAIFAAAAAAAAAAcIAhIDCgEYAAAABAAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBJbnRUb1N1bQAAAAIAAAAFYWNjdW0AAAAEbmV4dAkAASwAAAACBQAAAAVhY2N1bQUAAAAEbmV4dAEAAAAPcGl4ZWxWYWxpZGF0aW9yAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACBQAAAARuZXh0AgAAAAEtAw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AAAAAAnAAAAAAAAAAAoAAAAAAAAAAApAAAAAAAAAAAqAAAAAAAAAAArAAAAAAAAAAAsAAAAAAAAAAAtAAAAAAAAAAAuAAAAAAAAAAAvAAAAAAAAAAAwAAAAAAAAAAAxAAAAAAAAAAAyAAAAAK+7zUI=", "height": 2634153, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ENub1ErKmrXmeB44akZzCUM6jTwQNp9uGz9nDPwCjmxP Next: HdTAmC1AYB4CVerVhJ29LGLrHRjYURXiiwgFvFhWnFue Diff:
OldNewDifferences
88
99 func pixelValidatior (accum,next) = {
1010 let array = split(next, "-")
11- if (containsElement(colorList, array[0]))
11+ if (accum)
1212 then true
1313 else false
1414 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let colorList = ["aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon", "navy", "olive", "purple", "red", "silver", "teal", "white", "yellow"]
55
66 func mapIntToSum (accum,next) = (accum + next)
77
88
99 func pixelValidatior (accum,next) = {
1010 let array = split(next, "-")
11- if (containsElement(colorList, array[0]))
11+ if (accum)
1212 then true
1313 else false
1414 }
1515
1616
1717 func paintOver (accum,next) = {
1818 let array = split(next, "-")
1919 (accum ++ [StringEntry(((array[1] + "-") + array[2]), array[0])])
2020 }
2121
2222
2323 @Callable(i)
2424 func draw (pixels) = {
2525 let textPixelsList = ["red-17-67", "blue-18-67", "red-19-67", "green-20-67"]
2626 let isValid = {
2727 let $l = textPixelsList
2828 let $s = size($l)
2929 let $acc0 = true
3030 func $f0_1 ($a,$i) = if (($i >= $s))
3131 then $a
3232 else pixelValidatior($a, $l[$i])
3333
3434 func $f0_2 ($a,$i) = if (($i >= $s))
3535 then $a
3636 else throw("List size exceeds 10")
3737
3838 $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)
3939 }
4040 if (isValid)
4141 then throw("Is't walid")
4242 else {
4343 let $l = textPixelsList
4444 let $s = size($l)
4545 let $acc0 = nil
4646 func $f1_1 ($a,$i) = if (($i >= $s))
4747 then $a
4848 else paintOver($a, $l[$i])
4949
5050 func $f1_2 ($a,$i) = if (($i >= $s))
5151 then $a
5252 else throw("List size exceeds 50")
5353
5454 $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)
5555 }
5656 }
5757
5858

github/deemru/w8io/026f985 
35.02 ms