tx · 3gMH9Bjz2Z9udtssN99w4D19WXGLt5BVSHkNnVhSAn85

3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T:  -0.01000000 Waves

2023.06.22 20:33 [2634149] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves

{ "type": 13, "id": "3gMH9Bjz2Z9udtssN99w4D19WXGLt5BVSHkNnVhSAn85", "fee": 1000000, "feeAssetId": null, "timestamp": 1687455223618, "version": 2, "chainId": 84, "sender": "3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T", "senderPublicKey": "97sWz4UZWijkagGprhucQHR7b7nN6FfojMELnzuFEyY1", "proofs": [ "2j4gYCLammF2arhFWM5ga6NdJHybXRkE7PXdM4esqqR1FEkqk1XuGUMZgHZvkzmysjC22PKfxjteyf7sPsvLKWB9" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAABAAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBJbnRUb1N1bQAAAAIAAAAFYWNjdW0AAAAEbmV4dAkAASwAAAACBQAAAAVhY2N1bQUAAAAEbmV4dAEAAAAPcGl4ZWxWYWxpZGF0aW9yAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACBQAAAARuZXh0AgAAAAE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QAAAAAAAAAABUAAAAAAAAAABYAAAAAAAAAABcAAAAAAAAAABgAAAAAAAAAABkAAAAAAAAAABoAAAAAAAAAABsAAAAAAAAAABwAAAAAAAAAAB0AAAAAAAAAAB4AAAAAAAAAAB8AAAAAAAAAACAAAAAAAAAAACEAAAAAAAAAACIAAAAAAAAAACMAAAAAAAAAACQAAAAAAAAAACUAAAAAAAAAACYAAAAAAAAAACcAAAAAAAAAACgAAAAAAAAAACkAAAAAAAAAACoAAAAAAAAAACsAAAAAAAAAACwAAAAAAAAAAC0AAAAAAAAAAC4AAAAAAAAAAC8AAAAAAAAAADAAAAAAAAAAADEAAAAAAAAAADIAAAAAIOOKUg==", "height": 2634149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RqxmJ6TaFS4gd58VqJiyuJDupKJwjykwPg14hijMkoF Next: ADFEEsnMVXA7jPEGjtXaAFRvZNfNdNtZBJZCf79QWSXL Diff:
OldNewDifferences
4343
4444 $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)
4545 }
46- if (!(isValid))
46+ if (isValid)
4747 then throw("Is't walid")
4848 else {
4949 let $l = textPixelsList
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, "-")
1111 if (if (if (if (accum)
1212 then containsElement(colorList, array[0])
1313 else false)
1414 then (100 > parseIntValue(array[1]))
1515 else false)
1616 then (100 > parseIntValue(array[2]))
1717 else false)
1818 then true
1919 else false
2020 }
2121
2222
2323 func paintOver (accum,next) = {
2424 let array = split(next, "-")
2525 (accum ++ [StringEntry(((array[1] + "-") + array[2]), array[0])])
2626 }
2727
2828
2929 @Callable(i)
3030 func draw (pixels) = {
3131 let textPixelsList = ["red-17-67", "blue-18-67", "red-19-67", "green-20-67"]
3232 let isValid = {
3333 let $l = textPixelsList
3434 let $s = size($l)
3535 let $acc0 = true
3636 func $f0_1 ($a,$i) = if (($i >= $s))
3737 then $a
3838 else pixelValidatior($a, $l[$i])
3939
4040 func $f0_2 ($a,$i) = if (($i >= $s))
4141 then $a
4242 else throw("List size exceeds 10")
4343
4444 $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)
4545 }
46- if (!(isValid))
46+ if (isValid)
4747 then throw("Is't walid")
4848 else {
4949 let $l = textPixelsList
5050 let $s = size($l)
5151 let $acc0 = nil
5252 func $f1_1 ($a,$i) = if (($i >= $s))
5353 then $a
5454 else paintOver($a, $l[$i])
5555
5656 func $f1_2 ($a,$i) = if (($i >= $s))
5757 then $a
5858 else throw("List size exceeds 50")
5959
6060 $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)
6161 }
6262 }
6363
6464

github/deemru/w8io/026f985 
30.27 ms