tx · 9TijVqSoSJootULjwxaeE4pprQv4i6ZUUxkmgMqVnm8f

3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w:  -0.01400000 Waves

2019.11.18 13:28 [770449] smart account 3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w > SELF 0.00000000 Waves

{ "type": 13, "id": "9TijVqSoSJootULjwxaeE4pprQv4i6ZUUxkmgMqVnm8f", "fee": 1400000, "feeAssetId": null, "timestamp": 1574072877983, "version": 1, "sender": "3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w", "senderPublicKey": "99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u", "proofs": [ "4K8jB8BV9HmBvBuS8rFQR2eHZ22XNMTGvzZcQbJZUQCwdBMcbjNv3tmuTECqopoPCAUuDLW9G8xkPgjtWxsRE85M" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAsBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAQdmVyaWZpZXJfc3RhdHVzXwUAAAAHYWNjb3VudAEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAAZzdGF0dXMFAAAABnN0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAAtXSElURUxJU1RFRAIAAAALV0hJVEVMSVNURUQAAAAAC0JMQUNLTElTVEVEAgAAAAtCTEFDS0xJU1RFRAAAAAAHSU5WSVRFRAIAAAAHSU5WSVRFRAAAAAAQSU5WSVRFRE1PREVSQVRPUgIAAAAQSU5WSVRFRE1PREVSQVRPUgAAAAAMSU5WSVRFREFETUlOAgAAAAxJTlZJVEVEQURNSU4AAAAAC1NQRU5ESU5WSVRFAgAAAAxTUEVORF9JTlZJVEUAAAAABUFETUlOAgAAAAVBRE1JTgAAAAAJTU9ERVJBVE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AAAACmFYNK", "chainId": 84, "height": 770449, "spentComplexity": 0 } View: original | compacted Prev: Ekk1gtmCruqcnSTWQg6wKW1uNMqSZiSX7FykDENvAeEv Next: 2u9aiPHfkxQk28ini5g15xLz7RpUmxAzb1PBfBioFv23 Diff:
OldNewDifferences
99
1010 let verifier = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
1111
12-let WHITELISTED = "registered"
12+let WHITELISTED = "WHITELISTED"
1313
14-let BLACKLISTED = "blacklisted"
14+let BLACKLISTED = "BLACKLISTED"
1515
16-let INVITED = "invited"
16+let INVITED = "INVITED"
1717
18-let SPENDINVITE = "spend_invite"
18+let INVITEDMODERATOR = "INVITEDMODERATOR"
1919
20-let MODERATOR = "moderator"
20+let INVITEDADMIN = "INVITEDADMIN"
2121
22-let ADMIN = "admin"
22+let SPENDINVITE = "SPEND_INVITE"
23+
24+let ADMIN = "ADMIN"
25+
26+let MODERATOR = "MODERATOR"
2327
2428 @Callable(i)
2529 func setstatus (account,status) = {
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
12-let WHITELISTED = "registered"
12+let WHITELISTED = "WHITELISTED"
1313
14-let BLACKLISTED = "blacklisted"
14+let BLACKLISTED = "BLACKLISTED"
1515
16-let INVITED = "invited"
16+let INVITED = "INVITED"
1717
18-let SPENDINVITE = "spend_invite"
18+let INVITEDMODERATOR = "INVITEDMODERATOR"
1919
20-let MODERATOR = "moderator"
20+let INVITEDADMIN = "INVITEDADMIN"
2121
22-let ADMIN = "admin"
22+let SPENDINVITE = "SPEND_INVITE"
23+
24+let ADMIN = "ADMIN"
25+
26+let MODERATOR = "MODERATOR"
2327
2428 @Callable(i)
2529 func setstatus (account,status) = {
2630 let caller = toBase58String(i.caller.bytes)
2731 if (if ((caller != verifier))
2832 then if ((getExtValueItemWhiteListStatus(caller) != MODERATOR))
2933 then true
3034 else (getExtValueItemWhiteListStatus(caller) != ADMIN)
3135 else false)
3236 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
3337 else if (if ((caller != verifier))
3438 then if (if (if (if (if ((status != WHITELISTED))
3539 then true
3640 else (status != BLACKLISTED))
3741 then true
3842 else (status != INVITED))
3943 then true
4044 else (status != MODERATOR))
4145 then true
4246 else (status != ADMIN))
4347 then true
4448 else (status != SPENDINVITE)
4549 else false)
4650 then throw("status not recognised")
4751 else WriteSet([DataEntry(getExtKeyItemWhiteListStatus(account), status)])
4852 }
4953
5054

github/deemru/w8io/026f985 
52.15 ms