tx · 8ppzVsw3f8qWS5oGDNa9G9FtjmSKRrckx6msebhP96mp

3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w:  -0.04000000 Waves

2019.09.25 14:17 [691795] smart account 3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w > SELF 0.00000000 Waves

{ "type": 13, "id": "8ppzVsw3f8qWS5oGDNa9G9FtjmSKRrckx6msebhP96mp", "fee": 4000000, "feeAssetId": null, "timestamp": 1569410184242, "version": 1, "sender": "3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w", "senderPublicKey": "99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u", "proofs": [ "3FUFtq5c7ZhmSTysEFpXk5f2nGLjevD7eKK5Y48bRyTU3unCrVphbymKeCZE59zaJExiCmdFiuU7uHbWmcWisgi6" ], "script": "base64:AAIDAAAAAAAAAAAAAAAJAQAAABxnZXRFeHRLZXlJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAAdhY2NvdW50CQABLAAAAAICAAAAEHZlcmlmaWVyX3N0YXR1c18FAAAAB2FjY291bnQBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEAAAAGc3RhdHVzBQAAAAZzdGF0dXMAAAAACHZlcmlmaWVyAgAAACMzTkNLb0ZReFJmN3pzRE5iaXZMRncxb0o3eThxSnpMbUVzNAAAAAALV0hJVEVMSVNURUQCAAAACnJlZ2lzdGVyZWQAAAAAC0JMQUNLTElTVEVEAgAAAAtibGFja2xpc3RlZAAAAAAHSU5WSVRFRAIAAAAHaW52aXRlZAAAAAALU1BFTkRJTlZJVEUCAAAADHNwZW5kX2ludml0ZQAAAAAJTU9ERVJBVE9SAgAAAAltb2RlcmF0b3IAAAAABUFETUlOAgAAAAVhZG1pbgAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAdhY2NvdW50AAAABnN0YXR1cwQAAAAGY2FsbGVyCQACWAAAAAEICAUAAAABaQAAA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x37KYiUQNupEa5c2zbTB8 Diff:
OldNewDifferences
3030 else (getExtValueItemWhiteListStatus(caller) != ADMIN)
3131 else false)
3232 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
33- else if (if (if (if (if (if ((status != WHITELISTED))
33+ else if (if (if (if (if (if (if ((status != WHITELISTED))
3434 then true
3535 else (status != BLACKLISTED))
3636 then true
4141 else (status != ADMIN))
4242 then true
4343 else (status != SPENDINVITE))
44+ then true
45+ else (caller != verifier))
4446 then throw("status not recognised")
4547 else WriteSet([DataEntry(getExtValueItemWhiteListStatus(account), status)])
4648 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account)
55
66
77 func getExtValueItemWhiteListStatus (status) = status
88
99
1010 let verifier = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
1111
1212 let WHITELISTED = "registered"
1313
1414 let BLACKLISTED = "blacklisted"
1515
1616 let INVITED = "invited"
1717
1818 let SPENDINVITE = "spend_invite"
1919
2020 let MODERATOR = "moderator"
2121
2222 let ADMIN = "admin"
2323
2424 @Callable(i)
2525 func setstatus (account,status) = {
2626 let caller = toBase58String(i.caller.bytes)
2727 if (if ((caller != verifier))
2828 then if ((getExtValueItemWhiteListStatus(caller) != MODERATOR))
2929 then true
3030 else (getExtValueItemWhiteListStatus(caller) != ADMIN)
3131 else false)
3232 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
33- else if (if (if (if (if (if ((status != WHITELISTED))
33+ else if (if (if (if (if (if (if ((status != WHITELISTED))
3434 then true
3535 else (status != BLACKLISTED))
3636 then true
3737 else (status != INVITED))
3838 then true
3939 else (status != MODERATOR))
4040 then true
4141 else (status != ADMIN))
4242 then true
4343 else (status != SPENDINVITE))
44+ then true
45+ else (caller != verifier))
4446 then throw("status not recognised")
4547 else WriteSet([DataEntry(getExtValueItemWhiteListStatus(account), status)])
4648 }
4749
4850

github/deemru/w8io/026f985 
41.24 ms