tx · 2QPxzVsbNR5vUqa8hcvkmhw3AuFegnuVghk64zXYdo6i
3N86fazQiYYfMZTfAoLo3gDEnLk3bRqMiEs: -0.01400000 Waves
2019.07.04 04:48 [570041] smart account 3N86fazQiYYfMZTfAoLo3gDEnLk3bRqMiEs > SELF 0.00000000 Waves
{
"type": 13,
"id": "2QPxzVsbNR5vUqa8hcvkmhw3AuFegnuVghk64zXYdo6i",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562205044787,
"version": 1,
"sender": "3N86fazQiYYfMZTfAoLo3gDEnLk3bRqMiEs",
"senderPublicKey": "2s3WRHqYt4Cq9BRnyxRnLRUgfRab6djAZXEuT9vNL4nL",
"proofs": [
"YTJx4ovf75o7xNQoPULYkkJEiLjrkMP1rRy14FFaVsLxySnZwUhc5BzMqLyVJDEr6giN2BsZthaQfp4sQXMf1fv"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNOODZmYXpRaVlZZk1aVGZBb0xvM2dERW5MazNiUnFNaUVzAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAAAC32vE",
"chainId": 84,
"height": 570041,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func a (b) = (b + "_verifier_status") |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | let c = "3N86fazQiYYfMZTfAoLo3gDEnLk3bRqMiEs" |
---|
| 8 | + | |
---|
| 9 | + | let d = "verified" |
---|
| 10 | + | |
---|
| 11 | + | let e = "blacklist" |
---|
| 12 | + | |
---|
| 13 | + | @Callable(f) |
---|
| 14 | + | func setstatus (g,h) = { |
---|
| 15 | + | let i = toBase58String(f.caller.bytes) |
---|
| 16 | + | if ((i != c)) |
---|
| 17 | + | then throw("only oracle verifier are able to manage whitelist") |
---|
| 18 | + | else if (if ((h != d)) |
---|
| 19 | + | then (h != e) |
---|
| 20 | + | else false) |
---|
| 21 | + | then throw("wrong status") |
---|
| 22 | + | else WriteSet([DataEntry(a(g), h)]) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|