tx · EJdy4hgTuy1MnGiBhiUEazBqjshYxoFXoiViSyrbbCtH

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 21:11 [1818450] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "EJdy4hgTuy1MnGiBhiUEazBqjshYxoFXoiViSyrbbCtH", "fee": 1000000, "feeAssetId": null, "timestamp": 1638555107499, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "24b8Qa8eVFyDHHqHAtgieiFaUUmFYR16MQHqovVLyCy785VnPJ8rAm3YUoEqhjWWZCGtMKVSQD5NbS9LYVgkyXip" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABm51bWJlcgkAAZAAAAABBQAAAAVwaXh4eQQAAAAHcmVjb3JkcwUAAAADbmlsCgEAAAAHdmFsaWR4eQAAAAEAAAABeAQAAAAHJG1hdGNoMAkABLYAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDADAwkAAGYAAAACCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgA//////////8JAABmAAAAAgAAAAAA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AAABBQAAAANuaWwFAAAABHVuaXQAAAAAZ58cFA==", "height": 1818450, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E6VmVzusyxqNG875Sz1xGZkEbWiMD1K2BkfVZa7tp5QZ Next: CQGq16gFx6uAwDyPJCnNF9kR6k1W7NQorceeapsbEF5T Diff:
OldNewDifferences
99 func paint (d) = {
1010 let e = toBase58String(c.caller.bytes)
1111 let f = split(d, b)
12- let g = nil
13- func h (i) = {
14- let j = parseInt(f[i])
15- if ($isInstanceOf(j, "Int"))
12+ let g = size(f)
13+ let h = nil
14+ func i (j) = {
15+ let k = parseInt(f[j])
16+ if ($isInstanceOf(k, "Int"))
1617 then {
17- let k = j
18- if (if ((parseIntValue(f[i]) > -1))
19- then (1000 > parseIntValue(f[i]))
18+ let l = k
19+ if (if ((parseIntValue(f[j]) > -1))
20+ then (1000 > parseIntValue(f[j]))
2021 else false)
21- then parseInt(f[i])
22+ then parseInt(f[j])
2223 else false
2324 }
2425 else false
2526 }
2627
27- func l (i) = {
28- let j = getString(f[i])
29- if ($isInstanceOf(j, "String"))
28+ func m (j) = {
29+ let k = getString(f[j])
30+ if ($isInstanceOf(k, "String"))
3031 then {
31- let k = j
32- k
32+ let l = k
33+ l
3334 }
3435 else false
3536 }
3637
37- func m (i) = if ((h(i) == false))
38- then ["--", "--"]
39- else if ((l(i) == false))
40- then [f[i], makeString([e, "100", "color", "url"], b)]
41- else {
42- let n = (parseIntValue(split(getStringValue(f[i]), b)[1]) + 100)
43-[f[i], makeString([e, toString(n), "color", "url"], b)]
44- }
38+ func n (j) = {
39+ let o = max([j, (g - 1)])
40+ if ((i(o) == false))
41+ then ["--", "--"]
42+ else if ((m(o) == false))
43+ then [f[o], makeString([e, "100", "color", "url"], b)]
44+ else {
45+ let p = (parseIntValue(split(getStringValue(f[o]), b)[1]) + 100)
46+[f[o], makeString([e, toString(p), "color", "url"], b)]
47+ }
48+ }
4549
46- let o = [m(0), m(1), m(2), m(3), m(4)]
47- $Tuple2([StringEntry(o[0][0], o[0][1]), StringEntry(o[1][0], o[1][1]), StringEntry(o[2][0], o[2][1]), StringEntry(o[3][0], o[3][1]), StringEntry(o[4][0], o[4][1])], unit)
50+ let q = [n(0), n(1), n(2), n(3), n(4)]
51+ $Tuple2([StringEntry(q[0][0], q[0][1]), StringEntry(q[1][0], q[1][1]), StringEntry(q[2][0], q[2][1]), StringEntry(q[3][0], q[3][1]), StringEntry(q[4][0], q[4][1])], unit)
4852 }
4953
5054
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let b = "|||||"
77
88 @Callable(c)
99 func paint (d) = {
1010 let e = toBase58String(c.caller.bytes)
1111 let f = split(d, b)
12- let g = nil
13- func h (i) = {
14- let j = parseInt(f[i])
15- if ($isInstanceOf(j, "Int"))
12+ let g = size(f)
13+ let h = nil
14+ func i (j) = {
15+ let k = parseInt(f[j])
16+ if ($isInstanceOf(k, "Int"))
1617 then {
17- let k = j
18- if (if ((parseIntValue(f[i]) > -1))
19- then (1000 > parseIntValue(f[i]))
18+ let l = k
19+ if (if ((parseIntValue(f[j]) > -1))
20+ then (1000 > parseIntValue(f[j]))
2021 else false)
21- then parseInt(f[i])
22+ then parseInt(f[j])
2223 else false
2324 }
2425 else false
2526 }
2627
27- func l (i) = {
28- let j = getString(f[i])
29- if ($isInstanceOf(j, "String"))
28+ func m (j) = {
29+ let k = getString(f[j])
30+ if ($isInstanceOf(k, "String"))
3031 then {
31- let k = j
32- k
32+ let l = k
33+ l
3334 }
3435 else false
3536 }
3637
37- func m (i) = if ((h(i) == false))
38- then ["--", "--"]
39- else if ((l(i) == false))
40- then [f[i], makeString([e, "100", "color", "url"], b)]
41- else {
42- let n = (parseIntValue(split(getStringValue(f[i]), b)[1]) + 100)
43-[f[i], makeString([e, toString(n), "color", "url"], b)]
44- }
38+ func n (j) = {
39+ let o = max([j, (g - 1)])
40+ if ((i(o) == false))
41+ then ["--", "--"]
42+ else if ((m(o) == false))
43+ then [f[o], makeString([e, "100", "color", "url"], b)]
44+ else {
45+ let p = (parseIntValue(split(getStringValue(f[o]), b)[1]) + 100)
46+[f[o], makeString([e, toString(p), "color", "url"], b)]
47+ }
48+ }
4549
46- let o = [m(0), m(1), m(2), m(3), m(4)]
47- $Tuple2([StringEntry(o[0][0], o[0][1]), StringEntry(o[1][0], o[1][1]), StringEntry(o[2][0], o[2][1]), StringEntry(o[3][0], o[3][1]), StringEntry(o[4][0], o[4][1])], unit)
50+ let q = [n(0), n(1), n(2), n(3), n(4)]
51+ $Tuple2([StringEntry(q[0][0], q[0][1]), StringEntry(q[1][0], q[1][1]), StringEntry(q[2][0], q[2][1]), StringEntry(q[3][0], q[3][1]), StringEntry(q[4][0], q[4][1])], unit)
4852 }
4953
5054

github/deemru/w8io/026f985 
31.40 ms