tx · Dw5RnSGvs7v8jz76KMewNAS473Fwxx6hW7uaJFvmDgso

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 20:46 [1818423] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "Dw5RnSGvs7v8jz76KMewNAS473Fwxx6hW7uaJFvmDgso", "fee": 1000000, "feeAssetId": null, "timestamp": 1638553630377, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "51R9ThsriuVHWYNy9dAztEHYuo2qcYnBHXkEyqF1zYofYHY5Y5vH1WyFPFkoTp9am3EmYBmUXuhTqtg6qYyJChys" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAAB3JlY29yZHMFAAAAA25pbAoBAAAAB3ZhbGlkeHkAAAABAAAAAXgEAAAAByRtYXRjaDAJAAS2AAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwAwMJAABmAAAAAgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AP//////////CQAAZgAAAAIAAAAAAAAAA+gJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZ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ABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIFAAAAA3JlcwAAAAAAAAAAAAkAAZEAAAACBQAAAANyZXMAAAAAAAAAAAEFAAAAA25pbAUAAAAEdW5pdAAAAACbNvOA", "height": 1818423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNnzQaBHNRiW3JUtG5zPncmtU8Hh7woDo7WoAubm6Tt7 Next: AmA6T9GqiqKNdUWgEDbt5v5JZLHnLdDLJqZQWkSU9m7b Diff:
OldNewDifferences
77
88 @Callable(c)
99 func paint (d) = {
10- let e = 1
11- let f = 0
12- let g = toBase58String(c.caller.bytes)
13- let h = split(d, b)
14- let i = ((((((a + b) + "1000000") + b) + "0") + b) + "url")
15- func j (k) = {
16- let l = parseInt(h[k])
17- if ($isInstanceOf(l, "Int"))
10+ let e = toBase58String(c.caller.bytes)
11+ let f = split(d, b)
12+ let g = nil
13+ func h (i) = {
14+ let j = parseInt(f[i])
15+ if ($isInstanceOf(j, "Int"))
1816 then {
19- let m = l
20- parseInt(h[k])
17+ let k = j
18+ if (if ((parseIntValue(f[i]) > -1))
19+ then (1000 > parseIntValue(f[i]))
20+ else false)
21+ then parseInt(f[i])
22+ else false
2123 }
2224 else false
2325 }
2426
25- func n (k) = {
26- let l = getString(h[k])
27- if ($isInstanceOf(l, "String"))
27+ func l (i) = {
28+ let j = getString(f[i])
29+ if ($isInstanceOf(j, "String"))
2830 then {
29- let m = l
30- m
31+ let k = j
32+ k
3133 }
3234 else false
3335 }
3436
35- if ((j(0) == false))
36- then throw("not correct coord")
37- else {
38- let o = parseIntValue(h[0])
39- if (if ((o > -1))
40- then (1000 > o)
41- else false)
42- then if ((n(0) == false))
43- then $Tuple2([StringEntry(toString(o), i)], unit)
44- else throw("exists")
45- else throw("out of range")
46- }
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+ }
45+
46+ let i = 0
47+ let o = m(i)
48+ $Tuple2([StringEntry(o[0], o[1])], unit)
4749 }
4850
4951
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) = {
10- let e = 1
11- let f = 0
12- let g = toBase58String(c.caller.bytes)
13- let h = split(d, b)
14- let i = ((((((a + b) + "1000000") + b) + "0") + b) + "url")
15- func j (k) = {
16- let l = parseInt(h[k])
17- if ($isInstanceOf(l, "Int"))
10+ let e = toBase58String(c.caller.bytes)
11+ let f = split(d, b)
12+ let g = nil
13+ func h (i) = {
14+ let j = parseInt(f[i])
15+ if ($isInstanceOf(j, "Int"))
1816 then {
19- let m = l
20- parseInt(h[k])
17+ let k = j
18+ if (if ((parseIntValue(f[i]) > -1))
19+ then (1000 > parseIntValue(f[i]))
20+ else false)
21+ then parseInt(f[i])
22+ else false
2123 }
2224 else false
2325 }
2426
25- func n (k) = {
26- let l = getString(h[k])
27- if ($isInstanceOf(l, "String"))
27+ func l (i) = {
28+ let j = getString(f[i])
29+ if ($isInstanceOf(j, "String"))
2830 then {
29- let m = l
30- m
31+ let k = j
32+ k
3133 }
3234 else false
3335 }
3436
35- if ((j(0) == false))
36- then throw("not correct coord")
37- else {
38- let o = parseIntValue(h[0])
39- if (if ((o > -1))
40- then (1000 > o)
41- else false)
42- then if ((n(0) == false))
43- then $Tuple2([StringEntry(toString(o), i)], unit)
44- else throw("exists")
45- else throw("out of range")
46- }
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+ }
45+
46+ let i = 0
47+ let o = m(i)
48+ $Tuple2([StringEntry(o[0], o[1])], unit)
4749 }
4850
4951

github/deemru/w8io/026f985 
28.90 ms