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:
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 = ""
8+
9+let VERIFIED = "verified"
10+
11+let BLACKLISTED = "blacklist"
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 can")
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/169f3d6 
14.51 ms