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:AAIFAAAAAAAAAAcIAhIDCgEYAAAABgAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBTdHJUb1N0cgAAAAIAAAAFYWNjdW0AAAAEbmV4dAkABEwAAAACBQAAAARuZXh0BQAAAAVhY2N1bQEAAAAJcGFpbnRPdmVyAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAAC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kBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoAAAAAAAAAAAsAAAAAAAAAAAwAAAAAAAAAAA0AAAAAAAAAAA4AAAAAAAAAAA8AAAAAAAAAABAAAAAAAAAAABEAAAAAAAAAABIAAAAAAAAAABMAAAAAAAAAABQAAAAAAAAAABUAAAAAAAAAABYAAAAAAAAAABcAAAAAAAAAABgAAAAAAAAAABkAAAAAAAAAABoAAAAAAAAAABsAAAAAAAAAABwAAAAAAAAAAB0AAAAAAAAAAB4AAAAAAAAAAB8AAAAAAAAAACAAAAAAAAAAACEAAAAAAAAAACIAAAAAAAAAACMAAAAAAAAAACQAAAAAAAAAACUAAAAAAAAAACYAAAAAAAAAACcAAAAAAAAAACgAAAAAAAAAACkAAAAAAAAAACoAAAAAAAAAACsAAAAAAAAAACwAAAAAAAAAAC0AAAAAAAAAAC4AAAAAAAAAAC8AAAAAAAAAADAAAAAAAAAAADEAAAAAAAAAADIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAARsb2dfCQABpAAAAAEFAAAACG5ld0xvZ0lECQEAAAAXbGlzdEludENvbXByZXNzVG9TdHJpbmcAAAABBQAAAAZwaXhlbHMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABWxvZ0lEBQAAAAhuZXdMb2dJRAUAAAADbmlsAAAAAMiivg8=", "height": 2634306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJtsdqSJRiXFCyPMZULM1HN58F2kPVAW8gK63TTKJ1bQ Next: DaDfS9SGYxZ9YqB3hE4uQs3GZ4ek7AgsEA8AmwGzz8gY Diff:
OldNewDifferences
6161 else throw("List size exceeds 50")
6262
6363 $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)])
6565 }
6666
6767
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 mapStrToStr (accum,next) = next :: accum
77
88
99 func paintOver (accum,next) = {
1010 let array = split(next, "-")
1111 if (if (if (containsElement(colorList, array[0]))
1212 then (100 > parseIntValue(array[1]))
1313 else false)
1414 then (100 > parseIntValue(array[2]))
1515 else false)
1616 then (accum ++ [StringEntry(((array[1] + "-") + array[2]), array[0])])
1717 else throw("Is't walid")
1818 }
1919
2020
2121 func getLogID () = {
2222 let logID = getInteger("logID")
2323 if ((logID != unit))
2424 then getIntegerValue("logID")
2525 else 0
2626 }
2727
2828
2929 func listStringToListString (arr) = {
3030 let $l = arr
3131 let $s = size($l)
3232 let $acc0 = nil
3333 func $f0_1 ($a,$i) = if (($i >= $s))
3434 then $a
3535 else mapStrToStr($a, $l[$i])
3636
3737 func $f0_2 ($a,$i) = if (($i >= $s))
3838 then $a
3939 else throw("List size exceeds 50")
4040
4141 $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)
4242 }
4343
4444
4545 func listIntCompressToString (arr) = makeString(listStringToListString(arr), "|")
4646
4747
4848 @Callable(i)
4949 func draw (pixels) = {
5050 let newLogID = (getLogID() + 1)
5151 ({
5252 let $l = pixels
5353 let $s = size($l)
5454 let $acc0 = nil
5555 func $f0_1 ($a,$i) = if (($i >= $s))
5656 then $a
5757 else paintOver($a, $l[$i])
5858
5959 func $f0_2 ($a,$i) = if (($i >= $s))
6060 then $a
6161 else throw("List size exceeds 50")
6262
6363 $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)])
6565 }
6666
6767

github/deemru/w8io/169f3d6 
35.34 ms