tx · Fr47tBC7HHbQo2tqQ6bfA5P29ganjhyZgpMW9FYHLGaz

3MyfLLqWkzHFZ67fqxzkw1VhnFcxqDcvHfv:  -0.01400000 Waves

2019.11.23 14:07 [777782] smart account 3MyfLLqWkzHFZ67fqxzkw1VhnFcxqDcvHfv > SELF 0.00000000 Waves

{ "type": 13, "id": "Fr47tBC7HHbQo2tqQ6bfA5P29ganjhyZgpMW9FYHLGaz", "fee": 1400000, "feeAssetId": null, "timestamp": 1574507271145, "version": 1, "sender": "3MyfLLqWkzHFZ67fqxzkw1VhnFcxqDcvHfv", "senderPublicKey": "ADK2P9GzuBYfqabXG8b3QQaESv8bxix9vJu3zVfuYPok", "proofs": [ "3xB4KDFudyFCNMqLucGoFMqpWhbGziNmWyDCi6CyUV5cmwUY86QzdXh8uJLW295RpABgvymaR9Tu4kbVQZnv7vpL" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAQBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZXJfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAjM015ZkxMcVdrekhGWjY3ZnF4emt3MVZobkZjeHFEY3ZIZnYAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0U3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAA2FjYwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAADYWNjBQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAACBvbmx5IG9yYWNsZSBjYW4gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAAJ4zU9w==", "chainId": 84, "height": 777782, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
5+
6+
7+let verifier = "3MyfLLqWkzHFZ67fqxzkw1VhnFcxqDcvHfv"
8+
9+let VERIFIED = "verified"
10+
11+let BLACKLISTED = "blacklist"
12+
13+@Callable(i)
14+func setStatus (supplier,status) = {
15+ let acc = toBase58String(i.caller.bytes)
16+ if ((acc != verifier))
17+ then throw("only oracle can manage whitelist")
18+ else if (if ((status != VERIFIED))
19+ then (status != BLACKLISTED)
20+ else false)
21+ then throw("wrong status")
22+ else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)])
23+ }
24+
25+

github/deemru/w8io/026f985 
12.80 ms