tx · H11kyxj9fXpuuJcMq3VwbwFLknTic1jySCTpyJMC4jnq

3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu:  -0.01400000 Waves

2019.07.16 15:55 [588407] smart account 3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu > SELF 0.00000000 Waves

{ "type": 13, "id": "H11kyxj9fXpuuJcMq3VwbwFLknTic1jySCTpyJMC4jnq", "fee": 1400000, "feeAssetId": null, "timestamp": 1563281716328, "version": 1, "sender": "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu", "senderPublicKey": "A1J76fYH11fBgttC334sErn46r1WUCyckyx8xQPVMu1p", "proofs": [ "3WU4RVZerifvhkW7EegQwX2sMABBAcHnfQMfh8A7u2KknXJFZLziH1mzq6V4HXskdFSiXdi5VwnMf7swf58WafBH" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAQAAAB5nZXRFeHRWYWx1ZUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABAAAABGl0ZW0JAAEsAAAAAgUAAAAEaXRlbQIAAAAQX3ZlcmlmaWVyX3N0YXR1cwAAAAAIdmVyaWZpZXICAAAAIzNNd3VVd3Z6ak1tTWd2ZW9UUERlNGpmbzJ4ZmdwQTZ2S1F1AAAAAAhWRVJJRklFRAIAAAAIdmVyaWZpZWQAAAAAC0JMQUNLTElTVEVEAgAAAAlibGFja2xpc3QAAAABAAAAAWkBAAAACXNldHN0YXR1cwAAAAIAAAAIc3VwcGxpZXIAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAh2ZXJpZmllcgkAAAIAAAABAgAAAA9vbmx5IG9yYWNsZSBjYW4DAwkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAhWRVJJRklFRAkBAAAAAiE9AAAAAgUAAAAGc3RhdHVzBQAAAAtCTEFDS0xJU1RFRAcJAAACAAAAAQIAAAAMd3Jvbmcgc3RhdHVzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAeZ2V0RXh0VmFsdWVJdGVtV2hpdGVMaXN0U3RhdHVzAAAAAQUAAAAIc3VwcGxpZXIFAAAABnN0YXR1cwUAAAADbmlsAAAAAEM0M8E=", "chainId": 84, "height": 588407, "spentComplexity": 0 } View: original | compacted Prev: E6QkTn15Sc2Lm9XyZXgJRkSSs1X6sMB598WEqtTfWJvQ Next: none Diff:
OldNewDifferences
44 func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
55
66
7-let verifier = ""
7+let verifier = "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu"
88
99 let VERIFIED = "verified"
1010
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getExtValueItemWhiteListStatus (item) = (item + "_verifier_status")
55
66
7-let verifier = ""
7+let verifier = "3MwuUwvzjMmMgveoTPDe4jfo2xfgpA6vKQu"
88
99 let VERIFIED = "verified"
1010
1111 let BLACKLISTED = "blacklist"
1212
1313 @Callable(i)
1414 func setstatus (supplier,status) = {
1515 let account = toBase58String(i.caller.bytes)
1616 if ((account != verifier))
1717 then throw("only oracle can")
1818 else if (if ((status != VERIFIED))
1919 then (status != BLACKLISTED)
2020 else false)
2121 then throw("wrong status")
2222 else WriteSet([DataEntry(getExtValueItemWhiteListStatus(supplier), status)])
2323 }
2424
2525

github/deemru/w8io/169f3d6 
17.71 ms