tx · 2u9aiPHfkxQk28ini5g15xLz7RpUmxAzb1PBfBioFv23

3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w:  -0.01400000 Waves

2019.11.18 13:29 [770451] smart account 3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w > SELF 0.00000000 Waves

{ "type": 13, "id": "2u9aiPHfkxQk28ini5g15xLz7RpUmxAzb1PBfBioFv23", "fee": 1400000, "feeAssetId": null, "timestamp": 1574072998212, "version": 1, "sender": "3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w", "senderPublicKey": "99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u", "proofs": [ "5Yx11EXKydjD34LDdraGH79XRcjx644P9ivfYcA4GURZmVBm1CVpeWUV6KDqU3E72QC2516smAqjWfQFwtFaXFDS" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAsBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAQdmVyaWZpZXJfc3RhdHVzXwUAAAAHYWNjb3VudAEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAAZzdGF0dXMFAAAABnN0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAAtXSElURUxJU1RFRAIAAAALV0hJVEVMSVNURUQAAAAAC0JMQUNLTElTVEVEAgAAAAtCTEFDS0xJU1RFRAAAAAAHSU5WSVRFRAIAAAAHSU5WSVRFRAAAAAAQSU5WSVRFRE1PREVSQVRPUgIAAAAQSU5WSVRFRE1PREVSQVRPUgAAAAAMSU5WSVRFREFETUlOAgAAAAxJTlZJVEVEQURNSU4AAAAAC1NQRU5ESU5WSVRFAgAAAAxTUEVORF9JTlZJVEUAAAAABUFETUlOAgAAAAVBRE1JTgAAAAAJTU9ERVJBVE9SAgAAAAlN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eQAAAAIJAQAAABxnZXRFeHRLZXlJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAHYWNjb3VudAUAAAAGc3RhdHVzBQAAAANuaWwAAAAAXf5afQ==", "chainId": 84, "height": 770451, "spentComplexity": 0 } View: original | compacted Prev: 9TijVqSoSJootULjwxaeE4pprQv4i6ZUUxkmgMqVnm8f Next: 4uHDb3EuvF2Rm3NezEQv6EdJNyRYCDQPcQFMtz6YxDB6 Diff:
OldNewDifferences
3535 else false)
3636 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
3737 else if (if ((caller != verifier))
38- then if (if (if (if (if ((status != WHITELISTED))
38+ then if (if (if (if (if (if (if ((status != WHITELISTED))
3939 then true
4040 else (status != BLACKLISTED))
4141 then true
4242 else (status != INVITED))
43+ then true
44+ else (status != INVITEDMODERATOR))
45+ then true
46+ else (status != INVITEDADMIN))
4347 then true
4448 else (status != MODERATOR))
4549 then true
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 = "WHITELISTED"
1313
1414 let BLACKLISTED = "BLACKLISTED"
1515
1616 let INVITED = "INVITED"
1717
1818 let INVITEDMODERATOR = "INVITEDMODERATOR"
1919
2020 let INVITEDADMIN = "INVITEDADMIN"
2121
2222 let SPENDINVITE = "SPEND_INVITE"
2323
2424 let ADMIN = "ADMIN"
2525
2626 let MODERATOR = "MODERATOR"
2727
2828 @Callable(i)
2929 func setstatus (account,status) = {
3030 let caller = toBase58String(i.caller.bytes)
3131 if (if ((caller != verifier))
3232 then if ((getExtValueItemWhiteListStatus(caller) != MODERATOR))
3333 then true
3434 else (getExtValueItemWhiteListStatus(caller) != ADMIN)
3535 else false)
3636 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
3737 else if (if ((caller != verifier))
38- then if (if (if (if (if ((status != WHITELISTED))
38+ then if (if (if (if (if (if (if ((status != WHITELISTED))
3939 then true
4040 else (status != BLACKLISTED))
4141 then true
4242 else (status != INVITED))
43+ then true
44+ else (status != INVITEDMODERATOR))
45+ then true
46+ else (status != INVITEDADMIN))
4347 then true
4448 else (status != MODERATOR))
4549 then true
4650 else (status != ADMIN))
4751 then true
4852 else (status != SPENDINVITE)
4953 else false)
5054 then throw("status not recognised")
5155 else WriteSet([DataEntry(getExtKeyItemWhiteListStatus(account), status)])
5256 }
5357
5458

github/deemru/w8io/026f985 
26.95 ms