tx · 8ow4DDHfH89zWdLpmKcoxDqwZBq11xGZFPwgNVdssnqK
3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb: -0.01000000 Waves
2019.07.03 13:15 [569097] smart account 3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb > SELF 0.00000000 Waves
{
"type": 13,
"id": "8ow4DDHfH89zWdLpmKcoxDqwZBq11xGZFPwgNVdssnqK",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1562148941544,
"version": 1,
"sender": "3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb",
"senderPublicKey": "5yE3m1hdDh6uiAQR9k269kmTadEQt3m74TdcZB3yBU3C",
"proofs": [
"3KcZPcPuXmPAtrsV3fUsai3eHXtPFvriN58DMvgcqwP8ynamjv5vQrz9rbYmjckTJKGwVysTZrNqgkMSxub3XMAU"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XSHRlTGlzdFN0YXR1cwAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAABBfdmVyaWZpZWRfc3RhdHVzAAAAAAh2ZXJpZmllcgIAAAAjM01wR0Zhd1BwN3pTZ0VwZndSUEhvQ1FQMVRWZ2twRHE5TmIAAAAACFZFUklGSUVEAgAAAAh2ZXJpZmllZAAAAAALQkxBQ0tMSVNURUQCAAAACWJsYWNrbGlzdAAAAAEAAAABaQEAAAAJc2V0U3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAACHZlcmlmaWVyCQAAAgAAAAECAAAAKm9ubHkgb3JhY2xlIHZlcmlmaWVyIGFyZSBhYmxlIHRvIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB1nZXRFeHRWYWx1ZUl0ZW1XSHRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAADo5ZVg",
"chainId": 84,
"height": 569097,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: AAcxBYueGGBUfrJybcAN1SmngQwt94JHthsk1aBfbVMU
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func a (b) = (b + "_verified_status") |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | let c = "3MpGFawPp7zSgEpfwRPHoCQP1TVgkpDq9Nb" |
---|
| 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 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 | + | |
---|