tx · 8sJNw5PQXaa8QX13N4GXaLswkymRmQKEf4aqLvZDrW3A 3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4: -0.01400000 Waves 2019.07.04 04:58 [570051] smart account 3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4 > SELF 0.00000000 Waves
{ "type": 13, "id": "8sJNw5PQXaa8QX13N4GXaLswkymRmQKEf4aqLvZDrW3A", "fee": 1400000, "feeAssetId": null, "timestamp": 1562205531609, "version": 1, "sender": "3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4", "senderPublicKey": "DSnYugobtDLc6RsQn654J1NALWpKRBdyZamm98Xc8ChL", "proofs": [ "3R3XTKkRWfTGahr26mU7Caa7BRJQSRi1FDe4gdD1K5BWJKYovUM35Wtp7V8bEyYApJwfsUr5ZLZMggeUDyY7ezv2" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0ZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZXJfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAAAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHWdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXRlAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAE1H8Ks=", "chainId": 84, "height": 570051, "spentComplexity": 0 } View: original | compacted Prev: none Next: 8tQxFkBcgSnn4rw34QYEuzNTyyUJK3Y956toTBLwZYqE Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getExtValueItemWhiteListState (item) = (item + "_verifier_status") | |
5 | + | ||
6 | + | ||
7 | + | let verifier = "" | |
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(getExtValueItemWhiteListState(supplier), status)]) | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/169f3d6 23.76 ms ◑