tx · 36zVWF8WmZsCTWzQ9CGq3u2khimRuTQXnZgARQiJN8su

3Mt9c5k87x7P3bMwSf5qSkjfFQQpL3hSkAM:  -0.01400000 Waves

2019.07.03 10:29 [568934] smart account 3Mt9c5k87x7P3bMwSf5qSkjfFQQpL3hSkAM > SELF 0.00000000 Waves

{ "type": 13, "id": "36zVWF8WmZsCTWzQ9CGq3u2khimRuTQXnZgARQiJN8su", "fee": 1400000, "feeAssetId": null, "timestamp": 1562139088119, "version": 1, "sender": "3Mt9c5k87x7P3bMwSf5qSkjfFQQpL3hSkAM", "senderPublicKey": "3H5CpgkDmUkqBZAsnaVtsANKrCP97ka8mwxj36tHtfWL", "proofs": [ "4irJc8qTMKFxcbhTzWscC9YSavdk51NC6F55if6EuWEme8W3Sg19sQ3ABtsYk1wAAUd1QmcFUtQi7Gx3Emh2RXJh" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNdDljNWs4N3g3UDNiTXdTZjVxU2tqZkZRUXBMM2hTa0FNAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldFN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAACtBXNz", "chainId": 84, "height": 568934, "spentComplexity": 0 } View: original | compacted Prev: none Next: 7HX76MdXtJ9RC6yBBLxKoVxEj5FCxJX6Xv5JjVetZvsJ 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 = "3Mt9c5k87x7P3bMwSf5qSkjfFQQpL3hSkAM"
8+
9+let VERIFIED = "verified"
10+
11+let BLACKLISTED = "blacklist"
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(getExtValueItemWhiteListStatus(supplier), status)])
23+ }
24+
25+

github/deemru/w8io/026f985 
20.09 ms