tx · 4ncEewfzv1YQiJ3Et4WJ1JtjeqPCE6sVbdY3hud2Y5NR

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.04 18:22 [1819710] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "4ncEewfzv1YQiJ3Et4WJ1JtjeqPCE6sVbdY3hud2Y5NR", "fee": 1000000, "feeAssetId": null, "timestamp": 1638631348167, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "ZfUgfkd1YJ8rBZJTJTQXJzDmVfd9yAUUGzye5mffZS5bmT7zSvtpym6c9MJNEHUzkcvHRD2oiBqYHmh7KMScG2q" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAwAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluaXRwcmljZQIAAAAGMTAwMDAwAAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABm51bWJlcgkAAZcAAAABCQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgkAAZAAAAABBQAAAAVwaXh4eQUAAAADbmlsBAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAA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gUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABm1hc3RlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAADBQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAAAkIIJFg==", "height": 1819710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 84VoT8biS9VYSbVe9hzYEiqSdkDoBDzFG1HUWy5adPU Next: 5a1d92LuVrxUERLnykqnzdY7nV1B6zgtUUBEkRHoj6zA Diff:
OldNewDifferences
4848 [g[k], makeString([f, toString((p + parseIntValue(c))), "color", "url"], b), "", toString(p)]
4949 }
5050
51- func q (k) = if ((h > k))
51+ func q (k) = if (if ((h > k))
52+ then (n(k) != false)
53+ else false)
5254 then {
5355 let l = parseInt(split(getStringValue(g[k]), b)[1])
5456 if ($isInstanceOf(l, "Int"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx')
55
66 let b = "|||||"
77
88 let c = "100000"
99
1010 @Callable(d)
1111 func paint (e) = {
1212 let f = toBase58String(d.caller.bytes)
1313 let g = split(e, b)
1414 let h = min([5, size(g)])
1515 let i = nil
1616 func j (k) = {
1717 let l = parseInt(g[k])
1818 if ($isInstanceOf(l, "Int"))
1919 then {
2020 let m = l
2121 if (if ((parseIntValue(g[k]) > -1))
2222 then (1000 > parseIntValue(g[k]))
2323 else false)
2424 then parseInt(g[k])
2525 else false
2626 }
2727 else false
2828 }
2929
3030 func n (k) = {
3131 let l = getString(g[k])
3232 if ($isInstanceOf(l, "String"))
3333 then {
3434 let m = l
3535 m
3636 }
3737 else false
3838 }
3939
4040 func o (k) = if ((k > (h - 1)))
4141 then ["--", "--", "--", "0"]
4242 else if ((j(k) == false))
4343 then ["--", "--", "--", "0"]
4444 else if ((n(k) == false))
4545 then [g[k], makeString([f, c, "color", "url"], b), "", c]
4646 else {
4747 let p = parseIntValue(split(getStringValue(g[k]), b)[1])
4848 [g[k], makeString([f, toString((p + parseIntValue(c))), "color", "url"], b), "", toString(p)]
4949 }
5050
51- func q (k) = if ((h > k))
51+ func q (k) = if (if ((h > k))
52+ then (n(k) != false)
53+ else false)
5254 then {
5355 let l = parseInt(split(getStringValue(g[k]), b)[1])
5456 if ($isInstanceOf(l, "Int"))
5557 then {
5658 let m = l
5759 parseIntValue(split(getStringValue(g[k]), b)[1])
5860 }
5961 else 0
6062 }
6163 else 0
6264
6365 let r = ((((q(0) + q(1)) + q(2)) + q(3)) + q(4))
6466 let s = if ((size(d.payments) == 1))
6567 then d.payments[0]
6668 else throw(("Attached payment is required: " + toString(r)))
6769 if (isDefined(s.assetId))
6870 then throw("works with waves only")
6971 else if ((r > s.amount))
7072 then throw(((("you give: " + toString(s.amount)) + ", but deal needs: ") + toString(r)))
7173 else {
7274 let t = [o(0), o(1), o(2), o(3), o(4)]
7375 $Tuple2([StringEntry(t[0][0], t[0][1]), ScriptTransfer(a, parseIntValue(t[0][3]), unit), StringEntry(t[1][0], t[1][1]), ScriptTransfer(a, parseIntValue(t[1][3]), unit), StringEntry(t[2][0], t[2][1]), ScriptTransfer(a, parseIntValue(t[2][3]), unit), StringEntry(t[3][0], t[3][1]), ScriptTransfer(a, parseIntValue(t[3][3]), unit), StringEntry(t[4][0], t[4][1]), ScriptTransfer(a, parseIntValue(t[4][3]), unit)], unit)
7476 }
7577 }
7678
7779

github/deemru/w8io/169f3d6 
27.75 ms