tx · H11kyxj9fXpuuJcMq3VwbwFLknTic1jySCTpyJMC4jnq
3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu: -0.01400000 Waves
2019.07.16 15:55 [588407] smart account 3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu > SELF 0.00000000 Waves
{
"type": 13,
"id": "H11kyxj9fXpuuJcMq3VwbwFLknTic1jySCTpyJMC4jnq",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1563281716328,
"version": 1,
"sender": "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu",
"senderPublicKey": "A1J76fYH11fBgttC334sErn46r1WUCyckyx8xQPVMu1p",
"proofs": [
"3WU4RVZerifvhkW7EegQwX2sMABBAcHnfQMfh8A7u2KknXJFZLziH1mzq6V4HXskdFSiXdi5VwnMf7swf58WafBH"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNd3VVd3Z6ak1tTWd2ZW9UUERlNGpmbzJ4ZmdwQTZ2S1F1AAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAAA9vbmx5IG9yYWNsZSBjYW4DAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAEM0M8E=",
"chainId": 84,
"height": 588407,
"spentComplexity": 0
}
View: original | compacted
Prev: E6QkTn15Sc2Lm9XyZXgJRkSSs1X6sMB598WEqtTfWJvQ
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "" |
---|
| 7 | + | let verifier = "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu" |
---|
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 getExtValueItemWhiteListStatus (item) = (item + "_verifier_status") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | | - | let verifier = "" |
---|
| 7 | + | let verifier = "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu" |
---|
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 can") |
---|
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 | | |
---|