tx · 84VoT8biS9VYSbVe9hzYEiqSdkDoBDzFG1HUWy5adPU

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.04 18:03 [1819691] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "84VoT8biS9VYSbVe9hzYEiqSdkDoBDzFG1HUWy5adPU", "fee": 1000000, "feeAssetId": null, "timestamp": 1638630248780, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "4B1tzv8FNs75qHmYJUo8zqkHoxtEW19KxCTM1v9yQmTXF9ygaFmEkCTm7JSqwoKY9cYQgTawp3d5Wbfe2Jis6Aky" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAwAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluaXRwcmljZQIAAAAGMTAwMDAwAAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABm51bWJlcgkAAZcAAAABCQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgkAAZAAAAABBQAAAAVwaXh4eQUAAAADbmlsBAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdG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AAAAAAAAAAQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAGbWFzdGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAQAAAAAAAAAAAMFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAAAqTMH4", "height": 1819691, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9cs1ZehTh3nTURunE8UBy53a2YL1wSHSHzvVQu5p8WgV Next: 4ncEewfzv1YQiJ3Et4WJ1JtjeqPCE6sVbdY3hud2Y5NR Diff:
OldNewDifferences
4848 [g[k], makeString([f, toString((p + parseIntValue(c))), "color", "url"], b), "", toString(p)]
4949 }
5050
51- func q (k) = {
52- let l = parseInt(split(getStringValue(g[k]), b)[1])
53- if ($isInstanceOf(l, "Int"))
54- then {
55- let m = l
56- if ((h > k))
57- then parseIntValue(split(getStringValue(g[k]), b)[1])
58- else 0
59- }
60- else 0
61- }
51+ func q (k) = if ((h > k))
52+ then {
53+ let l = parseInt(split(getStringValue(g[k]), b)[1])
54+ if ($isInstanceOf(l, "Int"))
55+ then {
56+ let m = l
57+ parseIntValue(split(getStringValue(g[k]), b)[1])
58+ }
59+ else 0
60+ }
61+ else 0
6262
6363 let r = ((((q(0) + q(1)) + q(2)) + q(3)) + q(4))
6464 let s = if ((size(d.payments) == 1))
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) = {
52- let l = parseInt(split(getStringValue(g[k]), b)[1])
53- if ($isInstanceOf(l, "Int"))
54- then {
55- let m = l
56- if ((h > k))
57- then parseIntValue(split(getStringValue(g[k]), b)[1])
58- else 0
59- }
60- else 0
61- }
51+ func q (k) = if ((h > k))
52+ then {
53+ let l = parseInt(split(getStringValue(g[k]), b)[1])
54+ if ($isInstanceOf(l, "Int"))
55+ then {
56+ let m = l
57+ parseIntValue(split(getStringValue(g[k]), b)[1])
58+ }
59+ else 0
60+ }
61+ else 0
6262
6363 let r = ((((q(0) + q(1)) + q(2)) + q(3)) + q(4))
6464 let s = if ((size(d.payments) == 1))
6565 then d.payments[0]
6666 else throw(("Attached payment is required: " + toString(r)))
6767 if (isDefined(s.assetId))
6868 then throw("works with waves only")
6969 else if ((r > s.amount))
7070 then throw(((("you give: " + toString(s.amount)) + ", but deal needs: ") + toString(r)))
7171 else {
7272 let t = [o(0), o(1), o(2), o(3), o(4)]
7373 $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)
7474 }
7575 }
7676
7777

github/deemru/w8io/169f3d6 
50.48 ms