tx · Fwu1rYvsgixhsuC8DfPFYSKti1z38BRDmaKesZjgizNx

3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w:  -0.01400000 Waves

2019.09.25 16:46 [691945] smart account 3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w > SELF 0.00000000 Waves

{ "type": 13, "id": "Fwu1rYvsgixhsuC8DfPFYSKti1z38BRDmaKesZjgizNx", "fee": 1400000, "feeAssetId": null, "timestamp": 1569419213094, "version": 1, "sender": "3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w", "senderPublicKey": "99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u", "proofs": [ "28FbuujBLBZvQzogYYtKheK9DHrWKsK1UXtQ116xvGqXk7JrScnbK4YfkgBgmbAY7HPQugSjEY1nhVE5jT8kT92E" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAAAAAABOIj1q", "chainId": 84, "height": 691945, "spentComplexity": 0 } View: original | compacted Prev: 9xVfSePP6Xu5smxKbWfeitWv6qKtFUpzB7mQDn8xkjJV Next: 84CWyFY2QYqETgDUyDTZ4EatsEFY5PFEtnqsD6Ubqe73 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account)
54
6-
7-func getExtValueItemWhiteListStatus (status) = status
8-
9-
10-let verifier = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
11-
12-let WHITELISTED = "registered"
13-
14-let BLACKLISTED = "blacklisted"
15-
16-let INVITED = "invited"
17-
18-let SPENDINVITE = "spend_invite"
19-
20-let MODERATOR = "moderator"
21-
22-let ADMIN = "admin"
23-
24-@Callable(i)
25-func setstatus (account,status) = {
26- let caller = toBase58String(i.caller.bytes)
27- if (if ((caller != verifier))
28- then if ((getExtValueItemWhiteListStatus(caller) != MODERATOR))
29- then true
30- else (getExtValueItemWhiteListStatus(caller) != ADMIN)
31- else false)
32- then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
33- else if (if ((caller != verifier))
34- then if (if (if (if (if ((status != WHITELISTED))
35- then true
36- else (status != BLACKLISTED))
37- then true
38- else (status != INVITED))
39- then true
40- else (status != MODERATOR))
41- then true
42- else (status != ADMIN))
43- then true
44- else (status != SPENDINVITE)
45- else false)
46- then throw("status not recognised")
47- else WriteSet([DataEntry(getExtValueItemWhiteListStatus(account), status)])
48- }
495
506

github/deemru/w8io/026f985 
21.21 ms