tx · 9ptN3AttXL5pjQkoB3oHQigyNxge1yoJnk5DyZBp6e6J 3N41UP6aBHtNPkaP7ztvamqNueXTwnXWW6h: -0.01000000 Waves 2019.07.04 14:51 [570642] smart account 3N41UP6aBHtNPkaP7ztvamqNueXTwnXWW6h > SELF 0.00000000 Waves
{ "type": 13, "id": "9ptN3AttXL5pjQkoB3oHQigyNxge1yoJnk5DyZBp6e6J", "fee": 1000000, "feeAssetId": null, "timestamp": 1562241074721, "version": 1, "sender": "3N41UP6aBHtNPkaP7ztvamqNueXTwnXWW6h", "senderPublicKey": "Xw8zYu7UiChYWTNTDDAvHHs6V1LU35P82PJB6Cbv3VB", "proofs": [ "2cyyRoWdenmZmeGzdW9FQw6vQu2YvfpdjeorgSmGZ82GzUtNxEXNxVoZikKYSaeb7ieZiqyFpJvdWVXwjCVqmSQs" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVkX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNONDFVUDZhQkh0TlBrYVA3enR2YW1xTnVlWFR3blhXVzZoAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldFN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAACFPbmx5IE9yYWNsZSBjYW4gbWFuYWdlIHdoaXRlIGxpc3QDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAABP6FEw=", "chainId": 84, "height": 570642, "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 + "_verified_status") | |
5 | + | ||
6 | + | ||
7 | + | let verifier = "3N41UP6aBHtNPkaP7ztvamqNueXTwnXWW6h" | |
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 can manage white list") | |
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/026f985 19.33 ms ◑