tx · EW82wPEPkM1Lt73viZ7VQP9JwCba8E7hbd88NdHoTyiX
3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn: -0.01400000 Waves
2019.07.25 21:13 [601913] smart account 3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn > SELF 0.00000000 Waves
{
"type": 13,
"id": "EW82wPEPkM1Lt73viZ7VQP9JwCba8E7hbd88NdHoTyiX",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564078433400,
"version": 1,
"sender": "3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn",
"senderPublicKey": "GZqmiwQbsUpYDgJDoRarXav1p73nRfFeTfedKVtfJ3m7",
"proofs": [
"JtQkc7VgpXJ41BCQxYUFYJfpnbLk129uQdr6J8cLq9wxZvt9r3MiGr9Ft6g3Sntuxt7qDrpNQ4h8T4wfGzFMxGD"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNd0tGQzRib1M5eXlDNXAyWWRWMWhmQ1BLMkdIYVgyQlVyAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEaGFzaAkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQkAASwAAAACBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACEZFQVRVUkVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACERFTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAQc3VwcGxpZXIrc3RhdHVzXwUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAAEaGFzaAUAAAADbmlsAAAAAJSrZZM=",
"chainId": 84,
"height": 601913,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: BWowN3aFNfn9gYicCH3j25qV2UC1YBnZNPyWurdrBc3d
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 = "3MwKFC4boS9yyC5p2YdV1hfCPK2GHaX2BUr" |
---|
| 8 | + | |
---|
| 9 | + | let d = "featured" |
---|
| 10 | + | |
---|
| 11 | + | let e = "delisted" |
---|
| 12 | + | |
---|
| 13 | + | @Callable(f) |
---|
| 14 | + | func setstatus (g,h) = { |
---|
| 15 | + | let i = toBase58String(f.caller.bytes) |
---|
| 16 | + | let j = toBase58String(sha256(toBytes((g + h)))) |
---|
| 17 | + | if ((i != c)) |
---|
| 18 | + | then throw("only oracle veryfier are able to manage whitelist") |
---|
| 19 | + | else if (if ((h != d)) |
---|
| 20 | + | then (h != e) |
---|
| 21 | + | else false) |
---|
| 22 | + | then throw("wrong status") |
---|
| 23 | + | else WriteSet([DataEntry(a(g), h), DataEntry((("supplier+status_" + g) + h), j)]) |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|