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