tx · DNhqtpMLqzvLAn4aX3se1YdqLfEFyTtNgDTtRreouQpb

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.06 13:18 [1822271] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "DNhqtpMLqzvLAn4aX3se1YdqLfEFyTtNgDTtRreouQpb", "fee": 1000000, "feeAssetId": null, "timestamp": 1638785923414, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "36PhLM1FpCCGYqjc3JN9GqUCvizu4gkxcHJ6FFNy3xGJy8b1BA1vesvLHUYpmbi4Q5dgWy4BKUPUUEsE8aCu2WG9" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAABAAAAAAMYW5zd2Vyc0NvdW50AAAAAAAAAAADAAAAAAdhbnN3ZXJzCQAETAAAAAICAAAADkl0IGlzIGNlcnRhaW4uCQAETAAAAAICAAAAE0l0IGlzIGRlY2lkZWRseSBzby4JAARMAAAAAgIAAAAOVmVyeSBkb3VidGZ1bC4FAAAAA25pbAEAAAAJZ2V0QW5zd2VyAAAAAgAAAAhxdWVzdGlvbgAAAA5wcmV2aW91c0Fuc3dlcgQAAAAEaGFzaAkAAfcAAAABCQABmwAAAAEJAAEsAAAAAgUAAAAIcXVlc3Rpb24FAAAADnByZXZpb3VzQW5zd2VyBAAAAAVpbmRleAkABLEAAAABBQAAAARoYXNoCQABkQAAAAIFAAAAB2Fuc3dlcnMJAABqAAAAAgUAAAAFaW5kZXgFAAAADGFuc3dlcnNDb3VudAEAAAARZ2V0UHJldmlvdXNBbnN3ZXIAAAABAAAAB2FkZHJlc3MEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAdhZGRyZXNzAgAAAAJfYQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAdhZGRyZXNzAAAAAQAAAAFpAQAAAAZ0ZWxsbWUAAAABAAAACHF1ZXN0aW9uBAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABmFuc3dlcgkBAAAACWdldEFuc3dlcgAAAAIFAAAACHF1ZXN0aW9uCQEAAAARZ2V0UHJldmlvdXNBbnN3ZXIAAAABBQAAAA1jYWxsZXJBZGRyZXNzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAADWNhbGxlckFkZHJlc3MCAAAAAl9xBQAAAAhxdWVzdGlvbgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAAJfYQUAAAAGYW5zd2VyBQAAAANuaWwAAAAAIIHySw==", "height": 1822271, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6s59VKruHww9xcxnM4mUwFivC8wwfZizYaJRtUnSovqV Next: 7N6UjyYgYduXAZPbwdpWyTVCbza3P5h5dehGghEWBccL Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
4+let a = 3
55
6-let b = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx')
6+let b = ["It is certain.", "It is decidedly so.", "Very doubtful."]
77
8-let c = "|||||"
8+func c (d,e) = {
9+ let f = sha256(toBytes((d + e)))
10+ let g = toInt(f)
11+b[(g % a)]
12+ }
913
10-let d = 50
1114
12-let e = "100000"
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+ }
1324
14-let f = 1
1525
16-@Callable(g)
17-func paint (h) = {
18- let i = toBase58String(g.caller.bytes)
19- let j = split(h, "-|-")
20- let k = if ((size(j) > 1))
21- then j[1]
22- else "0"
23- let l = if ((size(j) > 2))
24- then j[2]
25- else "-"
26- let m = split(j[0], c)
27- let n = min([30, size(m)])
28- let o = ["--", "--", a, "0"]
29- let p = [i, e, k, l]
30- func q (r) = {
31- let s = parseInt(m[r])
32- if ($isInstanceOf(s, "Int"))
33- then {
34- let t = s
35- if (if ((parseIntValue(m[r]) > -1))
36- then (1000 > parseIntValue(m[r]))
37- else false)
38- then parseIntValue(m[r])
39- else -1
40- }
41- else -1
42- }
43-
44- func u (r) = {
45- let s = getString(m[r])
46- if ($isInstanceOf(s, "String"))
47- then {
48- let t = s
49- getStringValue(m[r])
50- }
51- else ""
52- }
53-
54- func v (r) = if (if ((r > (n - 1)))
55- then true
56- else (0 > q(r)))
57- then o
58- else if ((u(r) == ""))
59- then [m[r], makeString(p, c), a, e]
60- else {
61- let w = split(getStringValue(m[r]), c)
62- let x = w[1]
63-[m[r], makeString([i, toString(fraction(parseIntValue(x), (100 + d), 100)), k, l], c), w[0], x]
64- }
65-
66- let y = [v(0), v(1), v(2), v(3), v(4), v(5), v(6), v(7), v(8), v(9), v(10), v(11), v(12), v(13), v(14), v(15), v(16), v(17), v(18), v(19), v(20), v(21), v(22), v(23), v(24), v(25), v(26), v(27), v(28)]
67- let z = toString(fraction(((((((((((((((((((((((((((((parseIntValue(y[0][3]) + parseIntValue(y[1][3])) + parseIntValue(y[2][3])) + parseIntValue(y[3][3])) + parseIntValue(y[4][3])) + parseIntValue(y[5][3])) + parseIntValue(y[6][3])) + parseIntValue(y[7][3])) + parseIntValue(y[8][3])) + parseIntValue(y[9][3])) + parseIntValue(y[10][3])) + parseIntValue(y[11][3])) + parseIntValue(y[12][3])) + parseIntValue(y[13][3])) + parseIntValue(y[14][3])) + parseIntValue(y[15][3])) + parseIntValue(y[16][3])) + parseIntValue(y[17][3])) + parseIntValue(y[18][3])) + parseIntValue(y[19][3])) + parseIntValue(y[20][3])) + parseIntValue(y[21][3])) + parseIntValue(y[22][3])) + parseIntValue(y[23][3])) + parseIntValue(y[24][3])) + parseIntValue(y[25][3])) + parseIntValue(y[26][3])) + parseIntValue(y[27][3])) + parseIntValue(y[28][3])), (100 + f), 100))
68- $Tuple2([StringEntry(y[0][0], y[0][1]), ScriptTransfer(Address(fromBase58String(y[0][2])), parseIntValue(y[0][3]), unit), StringEntry(y[1][0], y[1][1]), ScriptTransfer(Address(fromBase58String(y[1][2])), parseIntValue(y[1][3]), unit), StringEntry(y[2][0], y[2][1]), ScriptTransfer(Address(fromBase58String(y[2][2])), parseIntValue(y[2][3]), unit), StringEntry(y[3][0], y[3][1]), ScriptTransfer(Address(fromBase58String(y[3][2])), parseIntValue(y[3][3]), unit), StringEntry(y[4][0], y[4][1]), ScriptTransfer(Address(fromBase58String(y[4][2])), parseIntValue(y[4][3]), unit), StringEntry(y[5][0], y[5][1]), ScriptTransfer(Address(fromBase58String(y[5][2])), parseIntValue(y[5][3]), unit), StringEntry(y[6][0], y[6][1]), ScriptTransfer(Address(fromBase58String(y[6][2])), parseIntValue(y[6][3]), unit), StringEntry(y[7][0], y[7][1]), ScriptTransfer(Address(fromBase58String(y[7][2])), parseIntValue(y[7][3]), unit), StringEntry(y[8][0], y[8][1]), ScriptTransfer(Address(fromBase58String(y[8][2])), parseIntValue(y[8][3]), unit), StringEntry(y[9][0], y[9][1]), ScriptTransfer(Address(fromBase58String(y[9][2])), parseIntValue(y[9][3]), unit), StringEntry(y[10][0], y[10][1]), ScriptTransfer(Address(fromBase58String(y[10][2])), parseIntValue(y[10][3]), unit), StringEntry(y[11][0], y[11][1]), ScriptTransfer(Address(fromBase58String(y[11][2])), parseIntValue(y[11][3]), unit), StringEntry(y[12][0], y[12][1]), ScriptTransfer(Address(fromBase58String(y[12][2])), parseIntValue(y[12][3]), unit), StringEntry(y[13][0], y[13][1]), ScriptTransfer(Address(fromBase58String(y[13][2])), parseIntValue(y[13][3]), unit), StringEntry(y[14][0], y[14][1]), ScriptTransfer(Address(fromBase58String(y[14][2])), parseIntValue(y[14][3]), unit), StringEntry(y[15][0], y[15][1]), ScriptTransfer(Address(fromBase58String(y[15][2])), parseIntValue(y[15][3]), unit), StringEntry(y[16][0], y[16][1]), ScriptTransfer(Address(fromBase58String(y[16][2])), parseIntValue(y[16][3]), unit), StringEntry(y[17][0], y[17][1]), ScriptTransfer(Address(fromBase58String(y[17][2])), parseIntValue(y[17][3]), unit), StringEntry(y[18][0], y[18][1]), ScriptTransfer(Address(fromBase58String(y[18][2])), parseIntValue(y[18][3]), unit), StringEntry(y[19][0], y[19][1]), ScriptTransfer(Address(fromBase58String(y[19][2])), parseIntValue(y[19][3]), unit), StringEntry(y[20][0], y[20][1]), ScriptTransfer(Address(fromBase58String(y[20][2])), parseIntValue(y[20][3]), unit), StringEntry(y[21][0], y[21][1]), ScriptTransfer(Address(fromBase58String(y[21][2])), parseIntValue(y[21][3]), unit), StringEntry(y[22][0], y[22][1]), ScriptTransfer(Address(fromBase58String(y[22][2])), parseIntValue(y[22][3]), unit), StringEntry(y[23][0], y[23][1]), ScriptTransfer(Address(fromBase58String(y[23][2])), parseIntValue(y[23][3]), unit), StringEntry(y[24][0], y[24][1]), ScriptTransfer(Address(fromBase58String(y[24][2])), parseIntValue(y[24][3]), unit), StringEntry(y[25][0], y[25][1]), ScriptTransfer(Address(fromBase58String(y[25][2])), parseIntValue(y[25][3]), unit), StringEntry(y[26][0], y[26][1]), ScriptTransfer(Address(fromBase58String(y[26][2])), parseIntValue(y[26][3]), unit), StringEntry(y[27][0], y[27][1]), ScriptTransfer(Address(fromBase58String(y[27][2])), parseIntValue(y[27][3]), unit), StringEntry(y[28][0], y[28][1]), ScriptTransfer(Address(fromBase58String(y[28][2])), parseIntValue(y[28][3]), unit), ScriptTransfer(g.caller, 0, unit)], unit)
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)])
6931 }
7032
7133

github/deemru/w8io/169f3d6 
48.83 ms