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