tx · 5K7CNiAbFbVNHUKZrhQJB9yZo1fcztC3he2XgBkpnpxa

3Mu3U9HY7hEDtwMGJJoouk1uXzet7iKk2ZC:  -0.01400000 Waves

2021.01.11 13:37 [1348673] smart account 3Mu3U9HY7hEDtwMGJJoouk1uXzet7iKk2ZC > SELF 0.00000000 Waves

{ "type": 13, "id": "5K7CNiAbFbVNHUKZrhQJB9yZo1fcztC3he2XgBkpnpxa", "fee": 1400000, "feeAssetId": null, "timestamp": 1610361431281, "version": 2, "chainId": 84, "sender": "3Mu3U9HY7hEDtwMGJJoouk1uXzet7iKk2ZC", "senderPublicKey": "4Z5G4h61KM7BosAwBocFUQgSSzBisTNzTdgvh1tUW6tR", "proofs": [ "2sQCNsCZiBxm28J1patpfEtjbQDZy6oxtufqY9auroPJsMkk3S3qK8y9rKfrESeUHwywK9pAEr1xZfgj7irhQtbi" ], "script": "base64:AAIEAAAAAAAAAAoIAhIGCgQICAgIAAAADAAAAAAFY2hyaXMCAAAAIzNNc0c2alBOQ3JWSlV0WUI3WEpCeFM3dXRXc1hBZjRuOVZwAAAAAARqb2VwAgAAACMzTXptNFZMd3NOOXVad2JUTXpQajNYdXhWNmtFZkFSOFVETgAAAAAHUEVORElORwIAAAAHUEVORElORwAAAAAIUkVKRUNURUQCAAAACFJFSkVDVEVEAAAAAAhBQ0NFUFRFRAIAAAAIQUNDRVBURUQAAAAAB1JFR1VMQVICAAAAB1JFR1VMQVIAAAAACEFQUFJPVkVEAgAAAAhBUFBST1ZFRAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAALa2V5VXNlckpzb24AAAADAAAABmNhbGxlcgAAAAlyZXFTdGF0dXMAAAAGcmVzdWx0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAKdXNlcl9qc29uXwUAAAAGY2FsbGV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Wx0CQEAAAAIbWFrZUpTT04AAAAEBQAAAAlyZXFTdGF0dXMFAAAABnJlc3VsdAkAAloAAAABCQABmwAAAAEFAAAAA21zZwkAAaQAAAABBQAAAAl0aW1lc3RhbXAFAAAAA25pbAkAAAIAAAABAgAAACFOb3QgYWxsb3dlZCB0byBjaGFuZ2UgdXNlciBzdGF0dXMAAAAAJ+eWxw==", "height": 1348673, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
5+
6+let b = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
7+
8+let c = "PENDING"
9+
10+let d = "REJECTED"
11+
12+let e = "ACCEPTED"
13+
14+let f = "REGULAR"
15+
16+let g = "APPROVED"
17+
18+func h (i) = valueOrElse(getString(this, i), "")
19+
20+
21+func j (k,l,m) = ((((("user_json_" + k) + "_") + l) + "_") + m)
22+
23+
24+func n (k) = ("user_request_" + k)
25+
26+
27+func o (k) = ("user_result_" + k)
28+
29+
30+func p (q,m,r,s) = (((((((("{\"requestStatus\": \"" + q) + "\", \"result\": \"") + m) + "\", \"message\":\"") + r) + "\",\"timestamp\":\"") + s) + "\"}")
31+
32+
33+@Callable(t)
34+func setStatus (u,l,m,r) = {
35+ let k = toString(addressFromPublicKey(t.callerPublicKey))
36+ let v = toBase58String(t.transactionId)
37+ let s = lastBlock.timestamp
38+ let w = h(n(u))
39+ let x = h(o(u))
40+ let y = if (containsElement([c, d, e], m))
41+ then m
42+ else throw("Unknown result for requested status")
43+ let z = if (containsElement([f, g], l))
44+ then l
45+ else throw("Unknown status request")
46+ if (containsElement([a, b, toString(this)], k))
47+ then [DeleteEntry(j(u, w, x)), StringEntry(n(u), l), StringEntry(o(u), m), StringEntry(j(u, l, m), p(l, m, toBase64String(toBytes(r)), toString(s)))]
48+ else throw("Not allowed to change user status")
49+ }
50+
51+

github/deemru/w8io/169f3d6 
24.49 ms