tx · BWowN3aFNfn9gYicCH3j25qV2UC1YBnZNPyWurdrBc3d

3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn:  -0.01400000 Waves

2019.07.25 21:41 [601939] smart account 3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn > SELF 0.00000000 Waves

{ "type": 13, "id": "BWowN3aFNfn9gYicCH3j25qV2UC1YBnZNPyWurdrBc3d", "fee": 1400000, "feeAssetId": null, "timestamp": 1564080108823, "version": 1, "sender": "3Mw5avyL87SjoukVT7KSManLppSEnhTFZtn", "senderPublicKey": "GZqmiwQbsUpYDgJDoRarXav1p73nRfFeTfedKVtfJ3m7", "proofs": [ "3kypu4mizAAFHrnsfDycvCC3wZXC8dPuXkhTqucGhKnwvrEgRMtFP92cvfV8p4vTG9X6P9FbHLmTDKJBqwsoY4H5" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNd0tGQzRib1M5eXlDNXAyWWRWMWhmQ1BLMkdIYVgyQlVyAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAAAAAEAAAABaQEAAAAJc2V0c3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEaGFzaAkAAlgAAAABCQAB9wAAAAEJAAGbAAAAAQkAASwAAAACBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzAwkBAAAAAiE9AAAAAgUAAAAHYWNjb3VudAUAAAAIdmVyaWZpZXIJAAACAAAAAQIAAAAxb25seSBvcmFjbGUgdmVyeWZpZXIgYXJlIGFibGUgdG8gbWFuYWdlIHdoaXRlbGlzdAMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACEZFQVRVUkVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACERFTElTVEVEBwkAAAIAAAABAgAAAAx3cm9uZyBzdGF0dXMJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAAhzdXBwbGllcgUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAQc3VwcGxpZXIrc3RhdHVzXwUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAAEaGFzaAUAAAADbmlsAAAAAJSrZZM=", "chainId": 84, "height": 601939, "spentComplexity": 0 } View: original | compacted Prev: EW82wPEPkM1Lt73viZ7VQP9JwCba8E7hbd88NdHoTyiX Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
55
66
77 let verifier = "3MwKFC4boS9yyC5p2YdV1hfCPK2GHaX2BUr"
88
99 let FEATURED = "featured"
1010
1111 let DELISTED = "delisted"
1212
1313 @Callable(i)
1414 func setstatus (supplier,status) = {
1515 let account = toBase58String(i.caller.bytes)
1616 let hash = toBase58String(sha256(toBytes((supplier + status))))
1717 if ((account != verifier))
1818 then throw("only oracle veryfier are able to manage whitelist")
1919 else if (if ((status != FEATURED))
2020 then (status != DELISTED)
2121 else false)
2222 then throw("wrong status")
2323 else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status), DataEntry((("supplier+status_" + supplier) + status), hash)])
2424 }
2525
2626

github/deemru/w8io/873ac7e 
17.19 ms