tx · 9kQviR45d23zLuBu3NCUdwpWR7QSurqQVELyvXSbrD29

3MtSS7RTsDoG91pR5gx5EWzGjJKuciDPeFN:  -0.01400000 Waves

2020.05.20 22:23 [1007002] smart account 3MtSS7RTsDoG91pR5gx5EWzGjJKuciDPeFN > SELF 0.00000000 Waves

{ "type": 13, "id": "9kQviR45d23zLuBu3NCUdwpWR7QSurqQVELyvXSbrD29", "fee": 1400000, "feeAssetId": null, "timestamp": 1590002317316, "version": 1, "sender": "3MtSS7RTsDoG91pR5gx5EWzGjJKuciDPeFN", "senderPublicKey": "8ffZxZakt7dEoMzAQT8TtX1zEBkt7fy8Z4amcAGGP4n6", "proofs": [ "3UvhDt2yJ93CBrBva5W5BxRCKdCDyK7f7bbDWjiASH4js1Z6KqeDdQUCJDK4FLC8ZH8hYH7JK3wbomFU1kxvGRXJ" ], "script": "base64:AAIDAAAAAAAAABAIARIHCgUICAgICBIDCgEIAAAABQAAAAAETk9ORQIAAAAEbm9uZQAAAAAJYWRtUHViS2V5AQAAACBJtFdmkqKlQZBmDC2wHIe5rNi7X/1v0xigoc7NIgTJdAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAANudW0BAAAAC2dldFN0ckJ5S2V5AAAAAQAAAANrZXkEAAAAA3N0cgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQUAAAADc3RyAQAAAA1nZXRTZWN1cmVIYXNoAAAAAQAAAANrZXkJAAJYAAAAAQkAAfUAAAABCQAB9gAAAAEJAAGbAAAAAQUAAAADa2V5AA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xvdwYJAQAAAAIhPQAAAAIJAAGRAAAAAgUAAAAEYXV0aAAAAAAAAAAAAAIAAAAIUmVjb3ZlcnkJAAACAAAAAQIAAAATUmVxdWVzdCBub3QgYWxsb3dlZAQAAAAFbXVsdGkJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAARhdXRoAAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAACHNlY0VtYWlsAgAAAAdfb3BBdXRoCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAlSZWNvdmVyeSwJAAGkAAAAAQkAAGQAAAACBQAAAAVtdWx0aQAAAAAAAAAAAQIAAAABLAkAAaQAAAABCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CQAAaAAAAAIFAAAABW11bHRpAAAAAAAAAAA8BQAAAANuaWwAAAAAhOP+lA==", "chainId": 84, "height": 1007002, "spentComplexity": 0 } View: original | compacted Prev: none Next: BD1exPsvjoCFjMjbkwn6SUuASZujD2o4zWzTAbWeEA7c Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+let b = base58'5xiFtrMoXunfGTJwkeA26uAcy2ByUajvA7WQ7xNNSa8b'
7+
8+func c (d) = {
9+ let e = {
10+ let f = getInteger(this, d)
11+ if ($isInstanceOf(f, "Int"))
12+ then {
13+ let g = f
14+ g
15+ }
16+ else 0
17+ }
18+ e
19+ }
20+
21+
22+func h (d) = {
23+ let i = {
24+ let f = getString(this, d)
25+ if ($isInstanceOf(f, "String"))
26+ then {
27+ let g = f
28+ g
29+ }
30+ else a
31+ }
32+ i
33+ }
34+
35+
36+func j (d) = toBase58String(keccak256(blake2b256(toBytes(d))))
37+
38+
39+@Callable(k)
40+func newAccredited (l,m,n,o,p) = {
41+ let q = toBase58String(k.callerPublicKey)
42+ let r = j(l)
43+ let s = j(m)
44+ if ((q != toBase58String(b)))
45+ then throw("Not auth to add operator")
46+ else if ((h(r) != a))
47+ then throw("This operator already added")
48+ else {
49+ let t = lastBlock.height
50+ WriteSet([DataEntry(r, s), DataEntry((r + "_opKey"), n), DataEntry((r + "_opData"), o), DataEntry((r + "_opLevel"), p), DataEntry((r + "_opAuth"), ("Allow,0," + toString(lastBlock.height)))])
51+ }
52+ }
53+
54+
55+
56+@Callable(k)
57+func recovery (l) = {
58+ let q = toBase58String(k.callerPublicKey)
59+ let u = extract(k.payment)
60+ let r = j(l)
61+ if ((h(r) == a))
62+ then throw("This operator does not exist")
63+ else if (((h(r) + "_opKey") != q))
64+ then if (if ((u.assetId != base58''))
65+ then true
66+ else (20000000 >= u.amount))
67+ then throw("Need at least 2 Waves for auth change password")
68+ else TransferSet([ScriptTransfer(addressFromStringValue("3MpBUJbYZVA8iwoesCYaSytA82dVPyzVpmW"), 25000000, u.assetId)])
69+ else {
70+ let v = split(h((r + "_opAuth")), ",")
71+ if (if ((v[0] != "Allow"))
72+ then true
73+ else (v[0] != "Recovery"))
74+ then throw("Request not allowed")
75+ else {
76+ let w = parseIntValue(v[1])
77+ WriteSet([DataEntry((r + "_opAuth"), ((("Recovery," + toString((w + 1))) + ",") + toString((lastBlock.height + (w * 60)))))])
78+ }
79+ }
80+ }
81+
82+

github/deemru/w8io/026f985 
33.18 ms