tx · 8tQxFkBcgSnn4rw34QYEuzNTyyUJK3Y956toTBLwZYqE
3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4: -0.01400000 Waves
2019.07.04 05:10 [570061] smart account 3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4 > SELF 0.00000000 Waves
{
"type": 13,
"id": "8tQxFkBcgSnn4rw34QYEuzNTyyUJK3Y956toTBLwZYqE",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562206292528,
"version": 1,
"sender": "3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4",
"senderPublicKey": "DSnYugobtDLc6RsQn654J1NALWpKRBdyZamm98Xc8ChL",
"proofs": [
"3DBEX9r6UPfuj3GDb5sUJQNr1y9FeGiFeearN28Key54MJuAitqFsaEVpE7hYfFVUtghGFXnX5hiTfty6fWConKb"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0ZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZXJfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAjM013djZjTXlyTFA1Q1EzZFRDc2hlbzRrUWpMR2ZLWkU1QzQAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAACHZlcmlmaWVyCQAAAgAAAAECAAAAMW9ubHkgb3JhY2xlIHZlcmlmaWVyIGFyZSBhYmxlIHRvIG1hbmFnZSB3aGl0ZWxpc3QDAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAdZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdGUAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAArV5YpQ==",
"chainId": 84,
"height": 570061,
"spentComplexity": 0
}
View: original | compacted
Prev: 8sJNw5PQXaa8QX13N4GXaLswkymRmQKEf4aqLvZDrW3A
Next: 9DeRvmqZWKVaN97arxHdJh2fi6f1q7nkLQprehsCz9E1
Diff:
Old | New | | Differences |
---|
4 | 4 | | func getExtValueItemWhiteListState (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "" |
---|
| 7 | + | let verifier = "3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4" |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getExtValueItemWhiteListState (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "" |
---|
| 7 | + | let verifier = "3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4" |
---|
8 | 8 | | |
---|
9 | 9 | | let VERIFIED = "verified" |
---|
10 | 10 | | |
---|
11 | 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(getExtValueItemWhiteListState(supplier), status)]) |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|