tx · CFdEKtQrjngyfXk3cvGKg7BMXfxyo7xmB1HrhPHvGfhV

3Mzp4yJ3CGWTX5Wy1f67aLaTvxdCW2ZdyPj:  -0.01400000 Waves

2019.08.07 16:00 [620556] smart account 3Mzp4yJ3CGWTX5Wy1f67aLaTvxdCW2ZdyPj > SELF 0.00000000 Waves

{ "type": 13, "id": "CFdEKtQrjngyfXk3cvGKg7BMXfxyo7xmB1HrhPHvGfhV", "fee": 1400000, "feeAssetId": null, "timestamp": 1565182860397, "version": 1, "sender": "3Mzp4yJ3CGWTX5Wy1f67aLaTvxdCW2ZdyPj", "senderPublicKey": "43D71TX4bLGundDUYhp72vRQLd7rtA639nWK1WexfjFq", "proofs": [ "4eynYc62L4mWLw7FQzKvHBYPr9Cva2dBakRKy9QrJFBEjfJQ2CV7tpJy1MF3UroX5aWYB73ebDdbQNrmC9ZzdoLH" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZWxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNenA0eUozQ0dXVFg1V3kxZjY3YUxhVHZ4ZENXMlpkeVBqAAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAtibGFja2xpc3RlZAAAAAEAAAABaQEAAAAJc2V0U3RhdHVzAAAAAgAAAAhzdXBwbGllcgAAAAZzdGF0dXMEAAAAB2FjY291bnQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAAB2FjY291bnQFAAAACHZlcmlmaWVyCQAAAgAAAAECAAAAJE9ubHkgb3JhY2xlIHZlcmlmaWVyIGNhbiBzZXQgU3RhdHVzLgMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAACFZFUklGSUVECQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAC0JMQUNLTElTVEVEBwkAAAIAAAABAgAAAA1Xcm9uZyBzdGF0dXMuCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVsaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAKCYx1A=", "chainId": 84, "height": 620556, "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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 = "3Mzp4yJ3CGWTX5Wy1f67aLaTvxdCW2ZdyPj"
8+
9+let VERIFIED = "verified"
10+
11+let BLACKLISTED = "blacklisted"
12+
13+@Callable(i)
14+func setStatus (supplier,status) = {
15+ let account = toBase58String(i.caller.bytes)
16+ if ((account != verifier))
17+ then throw("Only oracle verifier can set Status.")
18+ else if (if ((status != VERIFIED))
19+ then (status != BLACKLISTED)
20+ else false)
21+ then throw("Wrong status.")
22+ else WriteSet([DataEntry(getExtValueItemWhitelistStatus(supplier), status)])
23+ }
24+
25+

github/deemru/w8io/026f985 
28.21 ms