tx · 6rpcaN3wqmNmG73DXQW3QTbenjGHEchfztSbKS5ZCK4C
3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9: -0.01400000 Waves
2019.07.03 09:57 [568905] smart account 3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "6rpcaN3wqmNmG73DXQW3QTbenjGHEchfztSbKS5ZCK4C",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562137069093,
"version": 1,
"sender": "3N6T4TrgggyDbk75s5QtNjVvqHd21FG4pj9",
"senderPublicKey": "3Kg4rwYoGpjgLZ43hYvP3jtYxc6VLeg2ykXJRThH3S4B",
"proofs": [
"2ZJBbhpPJVtndoxXTJjbZwNqruGvgF93dqnS2LJoLXC8VXfLj6b2MHQV2S5qJdQo24Cw7i85uKTAQ2xB1cMKtRKw"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlzaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAAAAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AAAAAQAAAAFpAQAAAAlzZXRzdGF0dXMAAAACAAAACHN1cHBsaWVyAAAABnN0YXR1cwQAAAAHYWNjb3VudAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzBQAAAANuaWwAAAAA5jnxfA==",
"chainId": 84,
"height": 568905,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: ET5LpXhNdHjw36dEptKubwrfw9miRySrfgwv4GrqEXVa
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func a (b) = (b + "_verisier_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 veryfier 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 | + | |
---|