tx · 1VXTyTk8wDo6H2HU8f6XQEfUjFX4U41oLSMb1P4P3SQ 3N4ynv5cxsVeGSMoHBhiKKYcMmgZcDz8rzh: -0.01000000 Waves 2019.07.02 13:41 [567665] smart account 3N4ynv5cxsVeGSMoHBhiKKYcMmgZcDz8rzh > SELF 0.00000000 Waves
{ "type": 13, "id": "1VXTyTk8wDo6H2HU8f6XQEfUjFX4U41oLSMb1P4P3SQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1562064133189, "version": 1, "sender": "3N4ynv5cxsVeGSMoHBhiKKYcMmgZcDz8rzh", "senderPublicKey": "7RBp1hTfjQmME6KkwFrGwaAB4MFxQwUMXScXPE9ffgKB", "proofs": [ "VGAVcjZ1gebcFpQy9kSJiHLNErnaiTmbCkB8kbYU931D1iBi4qWvBjMi3HF1kKvmLpzhZVDi5gCg9cFDNE3wohB" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAABNnZXRFeHRLZXlJdGVtU3RhdHVzAAAAAQAAAAtzdXBwbGllckFkZAkAASwAAAACBQAAAAtzdXBwbGllckFkZAIAAAAQX3ZlcmlmaWVkX3N0YXR1cwAAAAALdmVyaWZpZXJBZGQCAAAAIzNONHludjVjeHNWZUdTTW9IQmhpS0tZY01tZ1pjRHo4cnpoAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAtibGFja2xpc3RlZAAAAAEAAAAIdmVyQWRkVHgBAAAACXNldFN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAAIdmVyQWRkVHgAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAALdmVyaWZpZXJBZGQJAAACAAAAAQIAAAA1b25seSBvcmFjbGUgdmVyaWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIGEgc3RhdHVzIGxpc3QDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAATZ2V0RXh0S2V5SXRlbVN0YXR1cwAAAAEFAAAAB2FjY291bnQFAAAABnN0YXR1cwUAAAADbmlsAAAAAEIjgkk=", "chainId": 84, "height": 567665, "spentComplexity": 0 } View: original | compacted Prev: none Next: 8YZiBD7xW9h8ME5DYbNMwURkNhN5CwnAoALxh6GW5GJg Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getExtKeyItemStatus (supplierAdd) = (supplierAdd + "_verified_status") | |
5 | + | ||
6 | + | ||
7 | + | let verifierAdd = "3N4ynv5cxsVeGSMoHBhiKKYcMmgZcDz8rzh" | |
8 | + | ||
9 | + | let VERIFIED = "verified" | |
10 | + | ||
11 | + | let BLACKLISTED = "blacklisted" | |
12 | + | ||
13 | + | @Callable(verAddTx) | |
14 | + | func setStatus (supplier,status) = { | |
15 | + | let account = toBase58String(verAddTx.caller.bytes) | |
16 | + | if ((account != verifierAdd)) | |
17 | + | then throw("only oracle verifier are able to manage a status list") | |
18 | + | else if (if ((status != VERIFIED)) | |
19 | + | then (status != BLACKLISTED) | |
20 | + | else false) | |
21 | + | then throw("wrong status") | |
22 | + | else WriteSet([DataEntry(getExtKeyItemStatus(account), status)]) | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/026f985 11.90 ms ◑