tx · 8ow4DDHfH89zWdLpmKcoxDqwZBq11xGZFPwgNVdssnqK 3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb: -0.01000000 Waves 2019.07.03 13:15 [569097] smart account 3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb > SELF 0.00000000 Waves
{ "type": 13, "id": "8ow4DDHfH89zWdLpmKcoxDqwZBq11xGZFPwgNVdssnqK", "fee": 1000000, "feeAssetId": null, "timestamp": 1562148941544, "version": 1, "sender": "3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb", "senderPublicKey": "5yE3m1hdDh6uiAQR9k269kmTadEQt3m74TdcZB3yBU3C", "proofs": [ "3KcZPcPuXmPAtrsV3fUsai3eHXtPFvriN58DMvgcqwP8ynamjv5vQrz9rbYmjckTJKGwVysTZrNqgkMSxub3XMAU" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XSHRlTGlzdFN0YXR1cwAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZWRfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAjM01wR0Zhd1BwN3pTZ0VwZndSUEhvQ1FQMVRWZ2twRHE5TmIAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0U3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAACHZlcmlmaWVyCQAAAgAAAAECAAAAKm9ubHkgb3JhY2xlIHZlcmlmaWVyIGFyZSBhYmxlIHRvIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XSHRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAADo5ZVg", "chainId": 84, "height": 569097, "spentComplexity": 0 } View: original | compacted Prev: none Next: AAcxBYueGGBUfrJybcAN1SmngQwt94JHthsk1aBfbVMU Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getExtValueItemWHteListStatus (item) = (item + "_verified_status") | |
5 | + | ||
6 | + | ||
7 | + | let verifier = "3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb" | |
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 whitelist") | |
18 | + | else if (if ((status != VERIFIED)) | |
19 | + | then (status != BLACKLISTED) | |
20 | + | else false) | |
21 | + | then throw("wrong status") | |
22 | + | else WriteSet([DataEntry(getExtValueItemWHteListStatus(supplier), status)]) | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/169f3d6 21.78 ms ◑