tx · 7sHDZV4g4VBfLgRa3SkmRmme1a6BLN6PRLw1ef49AfRp 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves 2021.12.04 15:36 [1819536] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{ "type": 13, "id": "7sHDZV4g4VBfLgRa3SkmRmme1a6BLN6PRLw1ef49AfRp", "fee": 1000000, "feeAssetId": null, "timestamp": 1638621378191, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "3pGg9fJt2ohDYdaxHYhn11Vov35KgK5wjX8eUd2ZHHNfEnVCb496oM3r471oyDKGdoXJ2hMsdaJF4FsKwpzVmQ8u" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABkAAAAAEFAAAABXBpeHh5BAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAMDCQAAZgAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAD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AQAAAAAAAAAAAwUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAACAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAACAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABm1hc3RlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAACAAAAAAAAAAADBQAAAAR1bml0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAMAAAAAAAAAAAAJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAMAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAGbWFzdGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAMAAAAAAAAAAAMFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAABAAAAAAAAAAAAAkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAABAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAZtYXN0ZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAABAAAAAAAAAAAAwUAAAAEdW5pdAUAAAADbmlsBQAAAAR1bml0AAAAAFM73Ok=", "height": 1819536, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: osURRcE9FcC919a4fyikXucUoEnuA7uEYXr33VyeYJJ Next: GFF4yai6QA57xNNhYbQZPakBFgw8bciA6cQ9z1n5xYxt Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx') | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = "|||||" | |
7 | 7 | ||
8 | - | func c (d,e) = { | |
9 | - | let f = sha256(toBytes((d + e))) | |
10 | - | let g = toInt(f) | |
11 | - | b[(g % a)] | |
12 | - | } | |
8 | + | @Callable(c) | |
9 | + | func paint (d) = { | |
10 | + | let e = toBase58String(c.caller.bytes) | |
11 | + | let f = split(d, b) | |
12 | + | let g = size(f) | |
13 | + | let h = nil | |
14 | + | func i (j) = { | |
15 | + | let k = parseInt(f[j]) | |
16 | + | if ($isInstanceOf(k, "Int")) | |
17 | + | then { | |
18 | + | let l = k | |
19 | + | if (if ((parseIntValue(f[j]) > -1)) | |
20 | + | then (1000 > parseIntValue(f[j])) | |
21 | + | else false) | |
22 | + | then parseInt(f[j]) | |
23 | + | else false | |
24 | + | } | |
25 | + | else false | |
26 | + | } | |
13 | 27 | ||
28 | + | func m (j) = { | |
29 | + | let k = getString(f[j]) | |
30 | + | if ($isInstanceOf(k, "String")) | |
31 | + | then { | |
32 | + | let l = k | |
33 | + | l | |
34 | + | } | |
35 | + | else false | |
36 | + | } | |
14 | 37 | ||
15 | - | func h (i) = { | |
16 | - | let j = getString(this, (i + "_a")) | |
17 | - | if ($isInstanceOf(j, "String")) | |
18 | - | then { | |
19 | - | let k = j | |
20 | - | k | |
21 | - | } | |
22 | - | else i | |
23 | - | } | |
38 | + | func n (j) = if ((j > (g - 1))) | |
39 | + | then ["--", "--"] | |
40 | + | else if ((i(j) == false)) | |
41 | + | then ["--", "--"] | |
42 | + | else if ((m(j) == false)) | |
43 | + | then [f[j], makeString([e, "100", "color", "url"], b), "", "100"] | |
44 | + | else { | |
45 | + | let o = parseIntValue(split(getStringValue(f[j]), b)[1]) | |
46 | + | [f[j], makeString([e, toString((o + 100)), "color", "url"], b), "", toString(o)] | |
47 | + | } | |
24 | 48 | ||
25 | - | ||
26 | - | @Callable(l) | |
27 | - | func tellme (d) = { | |
28 | - | let m = toBase58String(l.caller.bytes) | |
29 | - | let n = c(d, h(m)) | |
30 | - | WriteSet([DataEntry((m + "_q"), d), DataEntry((m + "_a"), n)]) | |
49 | + | let p = 0 | |
50 | + | let q = [n(0), n(1), n(2), n(3), n(4)] | |
51 | + | $Tuple2([StringEntry(q[0][0], q[0][1]), ScriptTransfer(a, parseIntValue(q[0][3]), unit), StringEntry(q[1][0], q[1][1]), ScriptTransfer(a, parseIntValue(q[1][3]), unit), StringEntry(q[2][0], q[2][1]), ScriptTransfer(a, parseIntValue(q[2][3]), unit), StringEntry(q[3][0], q[3][1]), ScriptTransfer(a, parseIntValue(q[3][3]), unit), StringEntry(q[4][0], q[4][1]), ScriptTransfer(a, parseIntValue(q[4][3]), unit)], unit) | |
31 | 52 | } | |
32 | 53 | ||
33 | 54 |
github/deemru/w8io/026f985 25.65 ms ◑