tx · 4izARmzbh9DQKs2onXkyvsFCRJ9t1rpqjuoT7eTAb4U9 3MrEbuyPRf2S5YYhkgBhaec4EZxo5SvJycM: -0.01000000 Waves 2019.07.03 10:56 [568961] smart account 3MrEbuyPRf2S5YYhkgBhaec4EZxo5SvJycM > SELF 0.00000000 Waves
{ "type": 13, "id": "4izARmzbh9DQKs2onXkyvsFCRJ9t1rpqjuoT7eTAb4U9", "fee": 1000000, "feeAssetId": null, "timestamp": 1562140600855, "version": 1, "sender": "3MrEbuyPRf2S5YYhkgBhaec4EZxo5SvJycM", "senderPublicKey": "DKuh1NL3RcALrTLKamds7JTvMaFG1QSGDcsvjgjDaVPo", "proofs": [ "5WMn9oiMQno1Rmnob8wbuGzmEqd84w28bTqWZjHkV7Roy9ZEuh2WJBdf8WMn5B4deTrQTcAkXL8g515gTRbSfkpK" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAANb3JhY2xlQWRkcmVzcwIAAAAjM01yRWJ1eVBSZjJTNVlZaGtnQmhhZWM0RVp4bzVTdkp5Y00AAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAADW9yYWNsZUFkZHJlc3MJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAAWHcItg==", "chainId": 84, "height": 568961, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
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 oracleAddress = "3MrEbuyPRf2S5YYhkgBhaec4EZxo5SvJycM" | |
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 != oracleAddress)) | |
17 | + | then throw("only oracle veryfier 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/169f3d6 21.55 ms ◑