tx · FdSvDgPsyevxXU7jRLtokah44d28xPoJo6R4r9Sa2Vyd 3N3M8E7uF1QstBzTMeobiUg1rGFttQNbgCz: -0.01400000 Waves 2019.07.05 11:25 [571964] smart account 3N3M8E7uF1QstBzTMeobiUg1rGFttQNbgCz > SELF 0.00000000 Waves
{ "type": 13, "id": "FdSvDgPsyevxXU7jRLtokah44d28xPoJo6R4r9Sa2Vyd", "fee": 1400000, "feeAssetId": null, "timestamp": 1562315160079, "version": 1, "sender": "3N3M8E7uF1QstBzTMeobiUg1rGFttQNbgCz", "senderPublicKey": "HQR5PdKkcggfcMyjkqLVo9c9pj3TgFKF7t4cm4ha7Byz", "proofs": [ "2gwNTQErCdaLSWPB8ujSVDjEKTn1gaNa4c6CcwHnXAbrrXyQQbFSDaF8VqgwF7AkCAfqehvAYqNgDzGTaKAPfzjP" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOM004RTd1RjFRc3RCelRNZW9iaVVnMXJHRnR0UU5iZ0N6AAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADBvbmx5IG9yYWNsZSB2ZXJpZmllciBpcyBhYmxlIHRvIG1hbmFnZSB3aGl0ZWxpc3QDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmaZWwk", "chainId": 84, "height": 571964, "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 + "_verifier_status") | |
5 | + | ||
6 | + | ||
7 | + | let verifier = "3N3M8E7uF1QstBzTMeobiUg1rGFttQNbgCz" | |
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 is 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 | + | ||
26 | + | @Verifier(tx) | |
27 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
28 | + |
github/deemru/w8io/169f3d6 19.35 ms ◑