tx · AMcnPUiv4ZmQwr75n8fit66TiztMMAoZ3CC3azgVs5ji
3Mx9qgMyMhHt7WUZr6PsaXNfmydxMG7YMxv: -0.01400000 Waves
2019.07.03 06:15 [568678] smart account 3Mx9qgMyMhHt7WUZr6PsaXNfmydxMG7YMxv > SELF 0.00000000 Waves
{
"type": 13,
"id": "AMcnPUiv4ZmQwr75n8fit66TiztMMAoZ3CC3azgVs5ji",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562123805729,
"version": 1,
"sender": "3Mx9qgMyMhHt7WUZr6PsaXNfmydxMG7YMxv",
"senderPublicKey": "Bj2XvAujtjParLrYQpWKh6LtMgUYj5bobgfCLfpZ5227",
"proofs": [
"2hP9Sxc5zMYFPRtZtsLdNizzUvJZF2WFUEc98Mv4Z4EPzkTwseFvS7nMsYjJySh6R7GXqiwpujD92cEaaeWdEfEP"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNeDlxZ015TWhIdDdXVVpyNlBzYVhOZm15ZHhNRzdZTXh2AAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAACfVcRo",
"chainId": 84,
"height": 568678,
"spentComplexity": 0
}
View: original | compacted
Prev: 9QD3hfGsNLZNacF5mb7XJsuYSbm6TmG2dmUVLDFR9n3s
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
11 | | - | let BLACKLISTED = "blacklisted" |
---|
| 11 | + | let BLACKLISTED = "blacklist" |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func setstatus (supplier,status) = { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | let verifier = "3Mx9qgMyMhHt7WUZr6PsaXNfmydxMG7YMxv" |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
11 | | - | let BLACKLISTED = "blacklisted" |
---|
| 11 | + | let BLACKLISTED = "blacklist" |
---|
12 | 12 | | |
---|
13 | 13 | | @Callable(i) |
---|
14 | 14 | | func setstatus (supplier,status) = { |
---|
15 | 15 | | let account = toBase58String(i.caller.bytes) |
---|
16 | 16 | | if ((account != verifier)) |
---|
17 | 17 | | then throw("only oracle verifier are able to manage whitelist") |
---|
18 | 18 | | else if (if ((status != VERIFIED)) |
---|
19 | 19 | | then (status != BLACKLISTED) |
---|
20 | 20 | | else false) |
---|
21 | 21 | | then throw("wrong status") |
---|
22 | 22 | | else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)]) |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|