tx · 99VbUVnvdF6EukuXVMFA6A1WZK56URo3rYN27ySFCP7g

3MvQW3Gb8tvxnb4ejpnZf2VYHtqSioLEqzx:  -0.01000000 Waves

2019.07.25 20:46 [601886] smart account 3MvQW3Gb8tvxnb4ejpnZf2VYHtqSioLEqzx > SELF 0.00000000 Waves

{ "type": 13, "id": "99VbUVnvdF6EukuXVMFA6A1WZK56URo3rYN27ySFCP7g", "fee": 1000000, "feeAssetId": null, "timestamp": 1564076794544, "version": 1, "sender": "3MvQW3Gb8tvxnb4ejpnZf2VYHtqSioLEqzx", "senderPublicKey": "3BUnq1ZDdrmQSgYEnjv21GkiYj8TXWQmWQfqRDmQDFRm", "proofs": [ "4f3nBnUM2sRFAVHtQboGzc27txC8gCKS6yzsFvdsm78uuhpSJMuPNyaspzfPWA582mCDYDD63DijcWaTuFDkaGAJ" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNd0tGQzRib1M5eXlDNXAyWWRWMWhmQ1BLMkdIYVgyQlVyAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEaGFzaAkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQkAASwAAAACBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACEZFQVRVUkVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACERFTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAQc3VwcGxpZXIrc3RhdHVzXwUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAAEaGFzaAUAAAADbmlsAAAAAJSrZZM=", "chainId": 84, "height": 601886, "spentComplexity": 0 } View: original | compacted Prev: none Next: 2F1CjVgTBqJ8tVsHfSrNHvtyDHPzCZvM15n1Zas9LQ5n Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
5+
6+
7+let verifier = "3MwKFC4boS9yyC5p2YdV1hfCPK2GHaX2BUr"
8+
9+let FEATURED = "featured"
10+
11+let DELISTED = "delisted"
12+
13+@Callable(i)
14+func setstatus (supplier,status) = {
15+ let account = toBase58String(i.caller.bytes)
16+ let hash = toBase58String(sha256(toBytes((supplier + status))))
17+ if ((account != verifier))
18+ then throw("only oracle veryfier are able to manage whitelist")
19+ else if (if ((status != FEATURED))
20+ then (status != DELISTED)
21+ else false)
22+ then throw("wrong status")
23+ else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status), DataEntry((("supplier+status_" + supplier) + status), hash)])
24+ }
25+
26+

github/deemru/w8io/026f985 
13.85 ms