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:AAIDAAAAAAAAAAgIARIECgIICAAAAAsBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAQdmVyaWZpZXJfc3RhdHVzXwUAAAAHYWNjb3VudAEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAAZzdGF0dXMFAAAABnN0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAAAtXSElURUxJU1RFRAIAAAALV0hJVEVMSVNURUQAAAAAC0JMQUNLTElTVEVEAgAAAAtCTEFDS0xJU1RFRAAAAAAHSU5WSVRFRAIAAAAHSU5WSVRFRAAAAAAQSU5WSVRFRE1PREVSQVRPUgIAAAAQSU5WSVRFRE1PREVSQVRPUgAAAAAMSU5WSVRFREFETUlOAgAAAAxJTlZJVEVEQURNSU4AAAAAC1NQRU5ESU5WSVRFAgAAAAxTUEVORF9JTlZJVEUAAAAABUFETUlOAgAAAAVBRE1JTgAAAAAJTU9ERVJBVE9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AAACmFYNK", "chainId": 84, "height": 770449, "spentComplexity": 0 } View: original | compacted Prev: Ekk1gtmCruqcnSTWQg6wKW1uNMqSZiSX7FykDENvAeEv Next: 2u9aiPHfkxQk28ini5g15xLz7RpUmxAzb1PBfBioFv23 Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | let verifier = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4" | |
11 | 11 | ||
12 | - | let WHITELISTED = " | |
12 | + | let WHITELISTED = "WHITELISTED" | |
13 | 13 | ||
14 | - | let BLACKLISTED = " | |
14 | + | let BLACKLISTED = "BLACKLISTED" | |
15 | 15 | ||
16 | - | let INVITED = " | |
16 | + | let INVITED = "INVITED" | |
17 | 17 | ||
18 | - | let | |
18 | + | let INVITEDMODERATOR = "INVITEDMODERATOR" | |
19 | 19 | ||
20 | - | let | |
20 | + | let INVITEDADMIN = "INVITEDADMIN" | |
21 | 21 | ||
22 | - | let ADMIN = "admin" | |
22 | + | let SPENDINVITE = "SPEND_INVITE" | |
23 | + | ||
24 | + | let ADMIN = "ADMIN" | |
25 | + | ||
26 | + | let MODERATOR = "MODERATOR" | |
23 | 27 | ||
24 | 28 | @Callable(i) | |
25 | 29 | func setstatus (account,status) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getExtKeyItemWhiteListStatus (account) = ("verifier_status_" + account) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func getExtValueItemWhiteListStatus (status) = status | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | let verifier = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4" | |
11 | 11 | ||
12 | - | let WHITELISTED = " | |
12 | + | let WHITELISTED = "WHITELISTED" | |
13 | 13 | ||
14 | - | let BLACKLISTED = " | |
14 | + | let BLACKLISTED = "BLACKLISTED" | |
15 | 15 | ||
16 | - | let INVITED = " | |
16 | + | let INVITED = "INVITED" | |
17 | 17 | ||
18 | - | let | |
18 | + | let INVITEDMODERATOR = "INVITEDMODERATOR" | |
19 | 19 | ||
20 | - | let | |
20 | + | let INVITEDADMIN = "INVITEDADMIN" | |
21 | 21 | ||
22 | - | let ADMIN = "admin" | |
22 | + | let SPENDINVITE = "SPEND_INVITE" | |
23 | + | ||
24 | + | let ADMIN = "ADMIN" | |
25 | + | ||
26 | + | let MODERATOR = "MODERATOR" | |
23 | 27 | ||
24 | 28 | @Callable(i) | |
25 | 29 | func setstatus (account,status) = { | |
26 | 30 | let caller = toBase58String(i.caller.bytes) | |
27 | 31 | if (if ((caller != verifier)) | |
28 | 32 | then if ((getExtValueItemWhiteListStatus(caller) != MODERATOR)) | |
29 | 33 | then true | |
30 | 34 | else (getExtValueItemWhiteListStatus(caller) != ADMIN) | |
31 | 35 | else false) | |
32 | 36 | then throw("only Kolin ADMINS or MODERATORS can manage the whitelist") | |
33 | 37 | else if (if ((caller != verifier)) | |
34 | 38 | then if (if (if (if (if ((status != WHITELISTED)) | |
35 | 39 | then true | |
36 | 40 | else (status != BLACKLISTED)) | |
37 | 41 | then true | |
38 | 42 | else (status != INVITED)) | |
39 | 43 | then true | |
40 | 44 | else (status != MODERATOR)) | |
41 | 45 | then true | |
42 | 46 | else (status != ADMIN)) | |
43 | 47 | then true | |
44 | 48 | else (status != SPENDINVITE) | |
45 | 49 | else false) | |
46 | 50 | then throw("status not recognised") | |
47 | 51 | else WriteSet([DataEntry(getExtKeyItemWhiteListStatus(account), status)]) | |
48 | 52 | } | |
49 | 53 | ||
50 | 54 |
github/deemru/w8io/026f985 52.15 ms ◑