tx · DWvWq7mzDhzeu9uMFvH9c3Vvqmt3vZu2Ct1Bc6K7n339 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6: -0.01000000 Waves 2021.12.05 10:58 [1820693] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves
{ "type": 13, "id": "DWvWq7mzDhzeu9uMFvH9c3Vvqmt3vZu2Ct1Bc6K7n339", "fee": 1000000, "feeAssetId": null, "timestamp": 1638691112001, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "5K2ishXbCtrwU856JMy7jAk8r5TkzepauJdFkW6EKKEnugdWZA986qkWuSgmLtPZzbYmt7A3mFnHiD5QPRpmhkhB" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluaXRwcmljZQIAAAAGMTAwMDAwAQAAAAd0b3dhdmVzAAAAAQAAAAFhAwkAAGYAAAACAAAAAAAAAAAJCQABMQAAAAEFAAAAAWEJAAEsAAAAAgkAASwAAAACAgAAAAEwAgAAAAEuBQAAAAFhCQABLAAAAAIJAAEsAAAAAgkAAS8AAAACBQAAAAFhCQAAZQAAAAIJAAExAAAAAQUAAAABYQAAAAAAAAAACAIAAAABLgkBAAAACXRha2VSaWdodAAAAAIFAAAAAWEAAAAAAAAAAAgAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQ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AAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAZtYXN0ZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAAAwAAAAAAAAAAAwUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABm1hc3RlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAADBQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAAASPMc+g==", "height": 1820693, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7T7rnGZmw59p4gBpe8VEVTvN2CQt2oYFHbaPKT8UmCp5 Next: AD8cdBS4gbR43u5737PCaMPVfJYGMfaCuUGvATCwFTYu Diff:
Old | New | Differences | |
---|---|---|---|
55 | 55 | [i[o], makeString([h, toString((s + parseIntValue(c))), "color", "url"], b), "", toString(s)] | |
56 | 56 | } | |
57 | 57 | ||
58 | - | let t = ((((r(0)[3] + r(1)[3]) + r(2)[3]) + r(3)[3]) + r(4)[3]) | |
58 | + | let t = toString(((((parseIntValue(r(0)[3]) + parseIntValue(r(1)[3])) + parseIntValue(r(2)[3])) + parseIntValue(r(3)[3])) + parseIntValue(r(4)[3]))) | |
59 | 59 | let u = if ((size(f.payments) == 1)) | |
60 | 60 | then f.payments[0] | |
61 | 61 | else throw(((("Attached payment is required: " + d(t)) + " peymentstr=") + t)) |
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 | let c = "100000" | |
9 | 9 | ||
10 | 10 | func d (e) = if ((9 > size(e))) | |
11 | 11 | then (("0" + ".") + e) | |
12 | 12 | else ((take(e, (size(e) - 8)) + ".") + takeRight(e, 8)) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(f) | |
16 | 16 | func paint (g) = { | |
17 | 17 | let h = toBase58String(f.caller.bytes) | |
18 | 18 | let i = split(g, b) | |
19 | 19 | let j = min([5, size(i)]) | |
20 | 20 | let k = nil | |
21 | 21 | let l = ["--", "--", "--", "0"] | |
22 | 22 | let m = [h, c, "color", "url"] | |
23 | 23 | func n (o) = { | |
24 | 24 | let p = parseInt(i[o]) | |
25 | 25 | if ($isInstanceOf(p, "Int")) | |
26 | 26 | then { | |
27 | 27 | let e = p | |
28 | 28 | if (if ((parseIntValue(i[o]) > -1)) | |
29 | 29 | then (1000 > parseIntValue(i[o])) | |
30 | 30 | else false) | |
31 | 31 | then parseIntValue(i[o]) | |
32 | 32 | else -1 | |
33 | 33 | } | |
34 | 34 | else -1 | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | func q (o) = { | |
38 | 38 | let p = getString(i[o]) | |
39 | 39 | if ($isInstanceOf(p, "String")) | |
40 | 40 | then { | |
41 | 41 | let e = p | |
42 | 42 | getStringValue(i[o]) | |
43 | 43 | } | |
44 | 44 | else "" | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | func r (o) = if (if ((o > (j - 1))) | |
48 | 48 | then true | |
49 | 49 | else (0 > n(o))) | |
50 | 50 | then l | |
51 | 51 | else if ((q(o) == "")) | |
52 | 52 | then [i[o], makeString(m, b), "reciever=master", c] | |
53 | 53 | else { | |
54 | 54 | let s = parseIntValue(split(getStringValue(i[o]), b)[1]) | |
55 | 55 | [i[o], makeString([h, toString((s + parseIntValue(c))), "color", "url"], b), "", toString(s)] | |
56 | 56 | } | |
57 | 57 | ||
58 | - | let t = ((((r(0)[3] + r(1)[3]) + r(2)[3]) + r(3)[3]) + r(4)[3]) | |
58 | + | let t = toString(((((parseIntValue(r(0)[3]) + parseIntValue(r(1)[3])) + parseIntValue(r(2)[3])) + parseIntValue(r(3)[3])) + parseIntValue(r(4)[3]))) | |
59 | 59 | let u = if ((size(f.payments) == 1)) | |
60 | 60 | then f.payments[0] | |
61 | 61 | else throw(((("Attached payment is required: " + d(t)) + " peymentstr=") + t)) | |
62 | 62 | if (isDefined(u.assetId)) | |
63 | 63 | then throw("works with waves only") | |
64 | 64 | else if ((parseIntValue(t) > u.amount)) | |
65 | 65 | then throw(((("you give: " + d(toString(u.amount))) + ", but deal needs: ") + d(t))) | |
66 | 66 | else { | |
67 | 67 | let v = [r(0), r(1), r(2), r(3), r(4)] | |
68 | 68 | $Tuple2([StringEntry(v[0][0], v[0][1]), ScriptTransfer(a, parseIntValue(v[0][3]), unit), StringEntry(v[1][0], v[1][1]), ScriptTransfer(a, parseIntValue(v[1][3]), unit), StringEntry(v[2][0], v[2][1]), ScriptTransfer(a, parseIntValue(v[2][3]), unit), StringEntry(v[3][0], v[3][1]), ScriptTransfer(a, parseIntValue(v[3][3]), unit), StringEntry(v[4][0], v[4][1]), ScriptTransfer(a, parseIntValue(v[4][3]), unit)], unit) | |
69 | 69 | } | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 |
github/deemru/w8io/169f3d6 36.34 ms ◑