tx · 4uHDb3EuvF2Rm3NezEQv6EdJNyRYCDQPcQFMtz6YxDB6

3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w:  -0.01400000 Waves

2019.11.18 17:52 [770710] smart account 3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w > SELF 0.00000000 Waves

{ "type": 13, "id": "4uHDb3EuvF2Rm3NezEQv6EdJNyRYCDQPcQFMtz6YxDB6", "fee": 1400000, "feeAssetId": null, "timestamp": 1574088627687, "version": 1, "sender": "3MvJMBxdrVAf1nCHiarJcQVnKy91HhBKe6w", "senderPublicKey": "99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u", "proofs": [ "3HBJ681dE2hbM52BvPZgRzEpapUgiyAp9ttdNnDzaMaduA3EPJfPKuabHBoYJ83VRPkwQG6UUWKoJ1abvj4JajPD" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAwBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAQdmVyaWZpZXJfc3RhdHVzXwUAAAAHYWNjb3VudAEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAAZzdGF0dXMFAAAABnN0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOQ0tvRlF4UmY3enNETmJpdkxGdzFvSjd5OHFKekxtRXM0AAAAABR0aGlzQWRkcmVzc1B1YmxpY0tleQEAAAAgeQ3CE9gMIb37oMo9b2d/nRpvVmKT4DiFAWcrnu2xIwIAAAAAC1dISVRFTElTVEVEAgAAAAtXSElURUxJU1RFRAAAAAALQkxBQ0tMSVNURUQCAAAAC0JMQUNLTElTVEVEAAAAAAdJTlZJVEVEAgAAAAdJTlZJVEVEAAAAABBJTlZJVEVETU9ERVJBVE9SAgAAABBJTlZJVEVETU9ERVJBVE9SAAAAAAxJTlZJVEVEQURNSU4CAAAADElOVklURURBRE1JTgAAAA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FXN0YXR1cyBub3QgcmVjb2duaXNlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAdhY2NvdW50BQAAAAZzdGF0dXMFAAAAA25pbAAAAAEAAAABaQEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAABaQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAJAAH0AAAAAwkAAZEAAAACCAUAAAABaQAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFpAAAACWJvZHlCeXRlcwgFAAAAAWkAAAAPc2VuZGVyUHVibGljS2V5B6fFC5o=", "chainId": 84, "height": 770710, "spentComplexity": 0 } View: original | compacted Prev: 2u9aiPHfkxQk28ini5g15xLz7RpUmxAzb1PBfBioFv23 Next: none Diff:
OldNewDifferences
99
1010 let e = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
1111
12-let f = "WHITELISTED"
12+let f = base58'99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u'
1313
14-let g = "BLACKLISTED"
14+let g = "WHITELISTED"
1515
16-let h = "INVITED"
16+let h = "BLACKLISTED"
1717
18-let i = "INVITEDMODERATOR"
18+let i = "INVITED"
1919
20-let j = "INVITEDADMIN"
20+let j = "INVITEDMODERATOR"
2121
22-let k = "SPEND_INVITE"
22+let k = "INVITEDADMIN"
2323
24-let l = "ADMIN"
24+let l = "SPEND_INVITE"
2525
26-let m = "MODERATOR"
26+let m = "ADMIN"
2727
28-@Callable(n)
28+let n = "MODERATOR"
29+
30+@Callable(o)
2931 func setstatus (b,d) = {
30- let o = toBase58String(n.caller.bytes)
31- if (if ((o != e))
32- then if ((c(o) != m))
32+ let p = toBase58String(o.caller.bytes)
33+ if (if ((p != e))
34+ then if ((c(p) != n))
3335 then true
34- else (c(o) != l)
36+ else (c(p) != m)
3537 else false)
3638 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
37- else if (if ((o != e))
38- then if (if (if (if (if (if (if ((d != f))
39- then true
40- else (d != g))
39+ else if (if ((p != e))
40+ then if (if (if (if (if (if (if ((d != g))
4141 then true
4242 else (d != h))
4343 then true
4545 then true
4646 else (d != j))
4747 then true
48+ else (d != k))
49+ then true
50+ else (d != n))
51+ then true
4852 else (d != m))
4953 then true
50- else (d != l))
51- then true
52- else (d != k)
54+ else (d != l)
5355 else false)
5456 then throw("status not recognised")
5557 else WriteSet([DataEntry(a(b), d)])
5658 }
5759
5860
61+@Verifier(o)
62+func q () = {
63+ let r = o
64+ if ($isInstanceOf(r, "SetScriptTransaction"))
65+ then {
66+ let s = r
67+ sigVerify(o.proofs[0], o.bodyBytes, o.senderPublicKey)
68+ }
69+ else false
70+ }
71+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = ("verifier_status_" + b)
55
66
77 func c (d) = d
88
99
1010 let e = "3NCKoFQxRf7zsDNbivLFw1oJ7y8qJzLmEs4"
1111
12-let f = "WHITELISTED"
12+let f = base58'99YVxEETpC8daMuVD1HFjz4KEx66SMyjjnCtNmptDa2u'
1313
14-let g = "BLACKLISTED"
14+let g = "WHITELISTED"
1515
16-let h = "INVITED"
16+let h = "BLACKLISTED"
1717
18-let i = "INVITEDMODERATOR"
18+let i = "INVITED"
1919
20-let j = "INVITEDADMIN"
20+let j = "INVITEDMODERATOR"
2121
22-let k = "SPEND_INVITE"
22+let k = "INVITEDADMIN"
2323
24-let l = "ADMIN"
24+let l = "SPEND_INVITE"
2525
26-let m = "MODERATOR"
26+let m = "ADMIN"
2727
28-@Callable(n)
28+let n = "MODERATOR"
29+
30+@Callable(o)
2931 func setstatus (b,d) = {
30- let o = toBase58String(n.caller.bytes)
31- if (if ((o != e))
32- then if ((c(o) != m))
32+ let p = toBase58String(o.caller.bytes)
33+ if (if ((p != e))
34+ then if ((c(p) != n))
3335 then true
34- else (c(o) != l)
36+ else (c(p) != m)
3537 else false)
3638 then throw("only Kolin ADMINS or MODERATORS can manage the whitelist")
37- else if (if ((o != e))
38- then if (if (if (if (if (if (if ((d != f))
39- then true
40- else (d != g))
39+ else if (if ((p != e))
40+ then if (if (if (if (if (if (if ((d != g))
4141 then true
4242 else (d != h))
4343 then true
4444 else (d != i))
4545 then true
4646 else (d != j))
4747 then true
48+ else (d != k))
49+ then true
50+ else (d != n))
51+ then true
4852 else (d != m))
4953 then true
50- else (d != l))
51- then true
52- else (d != k)
54+ else (d != l)
5355 else false)
5456 then throw("status not recognised")
5557 else WriteSet([DataEntry(a(b), d)])
5658 }
5759
5860
61+@Verifier(o)
62+func q () = {
63+ let r = o
64+ if ($isInstanceOf(r, "SetScriptTransaction"))
65+ then {
66+ let s = r
67+ sigVerify(o.proofs[0], o.bodyBytes, o.senderPublicKey)
68+ }
69+ else false
70+ }
71+

github/deemru/w8io/169f3d6 
46.32 ms