tx · Go1kZNs53Zw4RNikQKRvkC3V6cQGu8yNx6CbWfrcs5dC

3MqvWPFbPJiEUojusLfZNtHQEqVJhsDMiDi:  -0.01400000 Waves

2019.07.04 01:35 [569850] smart account 3MqvWPFbPJiEUojusLfZNtHQEqVJhsDMiDi > SELF 0.00000000 Waves

{ "type": 13, "id": "Go1kZNs53Zw4RNikQKRvkC3V6cQGu8yNx6CbWfrcs5dC", "fee": 1400000, "feeAssetId": null, "timestamp": 1562193276024, "version": 1, "sender": "3MqvWPFbPJiEUojusLfZNtHQEqVJhsDMiDi", "senderPublicKey": "5vSTeHvRdK3kMCrZEiRLnzCnTh8d4T89X5qabwrJW4db", "proofs": [ "29XprXyTu7i6LWQoKPFxy3ofF54DFUyZw8tMtqQPTq6metMtWH9kjX59Uy4KHRpepA3L8zKo1iskaP4mqUykUcqE" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAAAh2ZXJpZmllcgIAAAAjM01xdldQRmJQSmlFVW9qdXNMZlpOdEhRRXFWSmhzRE1pRGkAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAEAAAAbZ2V0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAAEF92ZXJpZmllcl9zdGF0dXMAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAG2dldFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAADupapL", "chainId": 84, "height": 569850, "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+let verifier = "3MqvWPFbPJiEUojusLfZNtHQEqVJhsDMiDi"
5+
6+let VERIFIED = "verified"
7+
8+let BLACKLISTED = "blacklist"
9+
10+func getValueItemWhiteListStatus (item) = (item + "_verifier_status")
11+
12+
13+@Callable(i)
14+func setstatus (supplier,status) = {
15+ let account = toBase58String(i.caller.bytes)
16+ if ((account != verifier))
17+ then throw("only oracle verifier are able to manage whitelist")
18+ else if (if ((status != VERIFIED))
19+ then (status != BLACKLISTED)
20+ else false)
21+ then throw("wrong status")
22+ else WriteSet([DataEntry(getValueItemWhiteListStatus(supplier), status)])
23+ }
24+
25+

github/deemru/w8io/169f3d6 
36.06 ms