tx · 8sJNw5PQXaa8QX13N4GXaLswkymRmQKEf4aqLvZDrW3A
3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4: -0.01400000 Waves
2019.07.04 04:58 [570051] smart account 3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4 > SELF 0.00000000 Waves
{
"type": 13,
"id": "8sJNw5PQXaa8QX13N4GXaLswkymRmQKEf4aqLvZDrW3A",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562205531609,
"version": 1,
"sender": "3Mwv6cMyrLP5CQ3dTCsheo4kQjLGfKZE5C4",
"senderPublicKey": "DSnYugobtDLc6RsQn654J1NALWpKRBdyZamm98Xc8ChL",
"proofs": [
"3R3XTKkRWfTGahr26mU7Caa7BRJQSRi1FDe4gdD1K5BWJKYovUM35Wtp7V8bEyYApJwfsUr5ZLZMggeUDyY7ezv2"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0ZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZXJfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAAAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAADFvbmx5IG9yYWNsZSB2ZXJpZmllciBhcmUgYWJsZSB0byBtYW5hZ2Ugd2hpdGVsaXN0AwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHWdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXRlAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAE1H8Ks=",
"chainId": 84,
"height": 570051,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 8tQxFkBcgSnn4rw34QYEuzNTyyUJK3Y956toTBLwZYqE
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 = "" |
---|
| 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 | + | |
---|