tx · 24cUTNBiFaASAcbmv88pTLn9DXMGYHsZsBxwYcC9e6i2 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T: -0.01000000 Waves 2023.06.22 20:39 [2634157] smart account 3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T > SELF 0.00000000 Waves
{ "type": 13, "id": "24cUTNBiFaASAcbmv88pTLn9DXMGYHsZsBxwYcC9e6i2", "fee": 1000000, "feeAssetId": null, "timestamp": 1687455644400, "version": 2, "chainId": 84, "sender": "3N272hFk6FBTgLM5HqpYVcCVmMcSCrEma9T", "senderPublicKey": "97sWz4UZWijkagGprhucQHR7b7nN6FfojMELnzuFEyY1", "proofs": [ "2dnFnQHM6zQh1uLuEu5r75bWVqpAq4GnLtGh6tusUgT9EH6iiARnTJBMd1rqDRux97YmaGUgL3Y68N1P1qMEMaJP" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAABAAAAAAJY29sb3JMaXN0CQAETAAAAAICAAAABGFxdWEJAARMAAAAAgIAAAAFYmxhY2sJAARMAAAAAgIAAAAEYmx1ZQkABEwAAAACAgAAAAdmdWNoc2lhCQAETAAAAAICAAAABGdyYXkJAARMAAAAAgIAAAAFZ3JlZW4JAARMAAAAAgIAAAAEbGltZQkABEwAAAACAgAAAAZtYXJvb24JAARMAAAAAgIAAAAEbmF2eQkABEwAAAACAgAAAAVvbGl2ZQkABEwAAAACAgAAAAZwdXJwbGUJAARMAAAAAgIAAAADcmVkCQAETAAAAAICAAAABnNpbHZlcgkABEwAAAACAgAAAAR0ZWFsCQAETAAAAAICAAAABXdoaXRlCQAETAAAAAICAAAABnllbGxvdwUAAAADbmlsAQAAAAttYXBJbnRUb1N1bQAAAAIAAAAFYWNjdW0AAAAEbmV4dAkAASwAAAACBQAAAAVhY2N1bQUAAAAEbmV4dAEAAAAPcGl4ZWxWYWxpZGF0aW9yAAAAAgAAAAVhY2N1bQAAAARuZXh0BAAAAAVhcnJheQkABLUAAAACBQAAAARuZXh0AgAAA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p1uu4teGZLe3yx9WfXq Next: Fgcy2bPmBrRkXrpg9fZ13m3HirLagYnpCARTB6gcvS8p Diff:
Old | New | Differences | |
---|---|---|---|
22 | 22 | ||
23 | 23 | func g (c,d) = { | |
24 | 24 | let f = split(d, "-") | |
25 | - | (c ++ [StringEntry(((f[1] + "-") + f[2]), f[0])]) | |
25 | + | if (if (if (containsElement(a, f[0])) | |
26 | + | then (100 > parseIntValue(f[1])) | |
27 | + | else false) | |
28 | + | then (100 > parseIntValue(f[2])) | |
29 | + | else false) | |
30 | + | then (c ++ [StringEntry(((f[1] + "-") + f[2]), f[0])]) | |
31 | + | else throw("Is't walid") | |
26 | 32 | } | |
27 | 33 | ||
28 | 34 | ||
29 | 35 | @Callable(h) | |
30 | 36 | func draw (i) = { | |
31 | 37 | let j = ["red-17-67", "blue-18-67", "red-19-67", "green-20-67"] | |
32 | - | let k = { | |
33 | - | let l = i | |
34 | - | let m = size(l) | |
35 | - | let n = true | |
36 | - | func o (p,q) = if ((q >= m)) | |
37 | - | then p | |
38 | - | else e(p, l[q]) | |
38 | + | let k = i | |
39 | + | let l = size(k) | |
40 | + | let m = nil | |
41 | + | func n (o,p) = if ((p >= l)) | |
42 | + | then o | |
43 | + | else g(o, k[p]) | |
39 | 44 | ||
40 | - | ||
41 | - | ||
42 | - | ||
45 | + | func q (o,p) = if ((p >= l)) | |
46 | + | then o | |
47 | + | else throw("List size exceeds 50") | |
43 | 48 | ||
44 | - | r(o(o(o(o(o(o(o(o(o(o(n, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
45 | - | } | |
46 | - | if (!(k)) | |
47 | - | then throw("Is't walid") | |
48 | - | else { | |
49 | - | let l = i | |
50 | - | let m = size(l) | |
51 | - | let n = nil | |
52 | - | func s (p,q) = if ((q >= m)) | |
53 | - | then p | |
54 | - | else g(p, l[q]) | |
55 | - | ||
56 | - | func t (p,q) = if ((q >= m)) | |
57 | - | then p | |
58 | - | else throw("List size exceeds 50") | |
59 | - | ||
60 | - | t(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(n, 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 | - | } | |
49 | + | q(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(m, 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) | |
62 | 50 | } | |
63 | 51 | ||
64 | 52 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = ["aqua", "black", "blue", "fuchsia", "gray", "green", "lime", "maroon", "navy", "olive", "purple", "red", "silver", "teal", "white", "yellow"] | |
5 | 5 | ||
6 | 6 | func b (c,d) = (c + d) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func e (c,d) = { | |
10 | 10 | let f = split(d, "-") | |
11 | 11 | if (if (if (if (c) | |
12 | 12 | then containsElement(a, f[0]) | |
13 | 13 | else false) | |
14 | 14 | then (100 > parseIntValue(f[1])) | |
15 | 15 | else false) | |
16 | 16 | then (100 > parseIntValue(f[2])) | |
17 | 17 | else false) | |
18 | 18 | then true | |
19 | 19 | else false | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func g (c,d) = { | |
24 | 24 | let f = split(d, "-") | |
25 | - | (c ++ [StringEntry(((f[1] + "-") + f[2]), f[0])]) | |
25 | + | if (if (if (containsElement(a, f[0])) | |
26 | + | then (100 > parseIntValue(f[1])) | |
27 | + | else false) | |
28 | + | then (100 > parseIntValue(f[2])) | |
29 | + | else false) | |
30 | + | then (c ++ [StringEntry(((f[1] + "-") + f[2]), f[0])]) | |
31 | + | else throw("Is't walid") | |
26 | 32 | } | |
27 | 33 | ||
28 | 34 | ||
29 | 35 | @Callable(h) | |
30 | 36 | func draw (i) = { | |
31 | 37 | let j = ["red-17-67", "blue-18-67", "red-19-67", "green-20-67"] | |
32 | - | let k = { | |
33 | - | let l = i | |
34 | - | let m = size(l) | |
35 | - | let n = true | |
36 | - | func o (p,q) = if ((q >= m)) | |
37 | - | then p | |
38 | - | else e(p, l[q]) | |
38 | + | let k = i | |
39 | + | let l = size(k) | |
40 | + | let m = nil | |
41 | + | func n (o,p) = if ((p >= l)) | |
42 | + | then o | |
43 | + | else g(o, k[p]) | |
39 | 44 | ||
40 | - | ||
41 | - | ||
42 | - | ||
45 | + | func q (o,p) = if ((p >= l)) | |
46 | + | then o | |
47 | + | else throw("List size exceeds 50") | |
43 | 48 | ||
44 | - | r(o(o(o(o(o(o(o(o(o(o(n, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
45 | - | } | |
46 | - | if (!(k)) | |
47 | - | then throw("Is't walid") | |
48 | - | else { | |
49 | - | let l = i | |
50 | - | let m = size(l) | |
51 | - | let n = nil | |
52 | - | func s (p,q) = if ((q >= m)) | |
53 | - | then p | |
54 | - | else g(p, l[q]) | |
55 | - | ||
56 | - | func t (p,q) = if ((q >= m)) | |
57 | - | then p | |
58 | - | else throw("List size exceeds 50") | |
59 | - | ||
60 | - | t(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(n, 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 | - | } | |
49 | + | q(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(n(m, 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) | |
62 | 50 | } | |
63 | 51 | ||
64 | 52 |
github/deemru/w8io/169f3d6 27.04 ms ◑