tx · 6rpcaN3wqmNmG73DXQW3QTbenjGHEchfztSbKS5ZCK4C 3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9: -0.01400000 Waves 2019.07.03 09:57 [568905] smart account 3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9 > SELF 0.00000000 Waves
{ "type": 13, "id": "6rpcaN3wqmNmG73DXQW3QTbenjGHEchfztSbKS5ZCK4C", "fee": 1400000, "feeAssetId": null, "timestamp": 1562137069093, "version": 1, "sender": "3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9", "senderPublicKey": "3Kg4rwYoGpjgLZ43hYvP3jtYxc6VLeg2ykXJRThH3S4B", "proofs": [ "2ZJBbhpPJVtndoxXTJjbZwNqruGvgF93dqnS2LJoLXC8VXfLj6b2MHQV2S5qJdQo24Cw7i85uKTAQ2xB1cMKtRKw" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlzaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAAAAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AAAAAQAAAAFpAQAAAAlzZXRzdGF0dXMAAAACAAAACHN1cHBsaWVyAAAABnN0YXR1cwQAAAAHYWNjb3VudAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAA5jnxfA==", "chainId": 84, "height": 568905, "spentComplexity": 0 } View: original | compacted Prev: none Next: ET5LpXhNdHjw36dEptKubwrfw9miRySrfgwv4GrqEXVa Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getExtValueItemWhiteListStatus (item) = (item + "_verisier_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 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 18.87 ms ◑