tx · E6QkTn15Sc2Lm9XyZXgJRkSSs1X6sMB598WEqtTfWJvQ
3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu: -0.01000000 Waves
2019.07.16 15:50 [588403] smart account 3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu > SELF 0.00000000 Waves
{
"type": 13,
"id": "E6QkTn15Sc2Lm9XyZXgJRkSSs1X6sMB598WEqtTfWJvQ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1563281524327,
"version": 1,
"sender": "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu",
"senderPublicKey": "A1J76fYH11fBgttC334sErn46r1WUCyckyx8xQPVMu1p",
"proofs": [
"3tfjQTBxQV5te5cPctKdao2VKW1BKW8B8eoxouvdm78VsyZxpm4etQMfqdeejHN6Yu8NpMAGmvjmbjSjgSqNXK4L"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAAAAAAAAIVkVSSUZJRUQCAAAACHZlcmlmaWVkAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AAAAAQAAAAFpAQAAAAlzZXRzdGF0dXMAAAACAAAACHN1cHBsaWVyAAAABnN0YXR1cwQAAAAHYWNjb3VudAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAPb25seSBvcmFjbGUgY2FuAwMJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAIVkVSSUZJRUQJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAALQkxBQ0tMSVNURUQHCQAAAgAAAAECAAAADHdyb25nIHN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHmdldEV4dFZhbHVlSXRlbVdoaXRlTGlzdFN0YXR1cwAAAAEFAAAACHN1cHBsaWVyBQAAAAZzdGF0dXMFAAAAA25pbAAAAAAlm6sP",
"chainId": 84,
"height": 588403,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: H11kyxj9fXpuuJcMq3VwbwFLknTic1jySCTpyJMC4jnq
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 can") |
---|
| 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 | + | |
---|