tx · 4jrcjc9AiJzMuof8Cez5CrdrzCVLZJ3kLoiVccr3dMKz 3N8WnYGZGVTykqtoDy7dzSzQNvfDNyvRKXr: -0.01400000 Waves 2019.07.02 21:48 [568166] smart account 3N8WnYGZGVTykqtoDy7dzSzQNvfDNyvRKXr > SELF 0.00000000 Waves
{ "type": 13, "id": "4jrcjc9AiJzMuof8Cez5CrdrzCVLZJ3kLoiVccr3dMKz", "fee": 1400000, "feeAssetId": null, "timestamp": 1562093291739, "version": 1, "sender": "3N8WnYGZGVTykqtoDy7dzSzQNvfDNyvRKXr", "senderPublicKey": "DXcq5gcyGWU5j6nPmW1cwdUTcwaUYeCxSeqo22YNdmbk", "proofs": [ "58iV71s9bLuLERMe4bGXhE8bnN7eyQ9nymWXZ19ffnh7bKLnRG9dkSCD5cStqKCwW2rwgk551gH5t8e3bep1gER6" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOOFduWUdaR1ZUeWtxdG9EeTdkelN6UU52ZkROeXZSS1hyAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADXdyb25nbiBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAAZS5zmw==", "chainId": 84, "height": 568166, "spentComplexity": 0 } View: original | compacted Prev: Aw4Kb2LSHNdhc6tPbMoLtQ9Nfo9TqGG4nM2j7ZUu3gK7 Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let verifier = "3N8WnYGZGVTykqtoDy7dzSzQNvfDNyvRKXr" | |
8 | 8 | ||
9 | 9 | let VERIFIED = "verified" | |
10 | 10 | ||
11 | 11 | let BLACKLISTED = "blacklist" | |
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | 14 | func setstatus (supplier,status) = { | |
15 | 15 | let account = toBase58String(i.caller.bytes) | |
16 | 16 | if ((account != verifier)) | |
17 | 17 | then throw("only oracle verifier are able to manage whitelist") | |
18 | 18 | else if (if ((status != VERIFIED)) | |
19 | 19 | then (status != BLACKLISTED) | |
20 | 20 | else false) | |
21 | 21 | then throw("wrongn status") | |
22 | 22 | else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)]) | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 |
github/deemru/w8io/169f3d6 25.90 ms ◑