tx · bQtzmQWus3jGLVkR7wsmra2z3UqsotRDnyg3qdnxCog 3N9f4YfQA9QPX1RiVvbhHYaChKw7B6giXrZ: -0.01400000 Waves 2019.07.08 16:35 [576701] smart account 3N9f4YfQA9QPX1RiVvbhHYaChKw7B6giXrZ > SELF 0.00000000 Waves
{ "type": 13, "id": "bQtzmQWus3jGLVkR7wsmra2z3UqsotRDnyg3qdnxCog", "fee": 1400000, "feeAssetId": null, "timestamp": 1562592952786, "version": 1, "sender": "3N9f4YfQA9QPX1RiVvbhHYaChKw7B6giXrZ", "senderPublicKey": "GpJ4QV5WTiuGzJp2eLsr3VXFxNEK7bN3BogRQf5exQCk", "proofs": [ "25LLarDTjsJvRPYFsy3toLKYGo9DXrLat1oqcB8i2KiSdtfm1Wip9gMknR7968zWw9ipKWQBiLBizqFfiSJ7vsXi" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAPdmVyaWZpZXJfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAjM045ZjRZZlFBOVFQWDFSaVZ2YmhIWWFDaEt3N0I2Z2lYcloAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAACHZlcmlmaWVyCQAAAgAAAAECAAAAMW9ubHkgb3JhY2xlIHZlcmlmaWVyIGFyZSBhYmxlIHRvIG1hbmFnZSB3aGl0ZWxpc3QDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAADF5qUI=", "chainId": 84, "height": 576701, "spentComplexity": 0 } View: original | compacted Prev: none Next: 5qJ18bxAvXDuSjBgCsLsS9nxPHT4TyCojBfGLB9RkJyL 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 verifier = "3N9f4YfQA9QPX1RiVvbhHYaChKw7B6giXrZ" | |
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(getExtValueItemWhiteListStatus(supplier), status)]) | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/169f3d6 19.04 ms ◑