def bc_artificial_check(self, result): data = deepcopy(TX_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "artificialCheck" data["params"]["ctorMsg"]["args"] = self.blockchain_check_params( result) ret = BlockChain.invoke(TX_URL, data) print "+++++++++" print ret
def bc_evaluate(self, userid, score): data = deepcopy(TX_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "evaluate" data["params"]["ctorMsg"]["args"] = self.blockchain_evaluate_params( userid, score) ret = BlockChain.invoke(TX_URL, data) print "+++++++++" print ret
def bc_create(self): data = deepcopy(TX_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "create" data["params"]["ctorMsg"]["args"] = self.blockchain_create_params() ret = BlockChain.invoke(TX_URL, data) print("+++++++++") print(ret)
def bc_create(self): data = deepcopy(JOBINFO_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "add" data["params"]["ctorMsg"]["args"] = self.blockchain_create_params() r = BlockChain.invoke(JOBINFO_URL, data) print(json.dumps(data)) print(r)
def bc_create(self): data = deepcopy(TX_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "create" data["params"]["ctorMsg"]["args"] = self.blockchain_create_params() # print "++++++++++++" # print json.dumps(data) # print "+++++++++" ret = BlockChain.invoke(TX_URL, data) print "+++++++++" print ret
def bc_add_total_hired(self): data = deepcopy(JOBINFO_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "addTotalHired" data["params"]["ctorMsg"]["args"] = self.blockchain_jobrelated_params() BlockChain.invoke(JOBINFO_URL, data)
def bc_add_tx(self, txid): data = deepcopy(JOBINFO_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "addTX" data["params"]["ctorMsg"]["args"] = self.blockchain_addtx_params(txid) BlockChain.invoke(JOBINFO_URL, data)
def bc_delete(self): data = deepcopy(JOBINFO_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "delete" data["params"]["ctorMsg"]["args"] = self.blockchain_delete_params() BlockChain.invoke(JOBINFO_URL, data)
def bc_update(self): data = deepcopy(USERINFO_INVOKE_DATA) data["params"]["ctorMsg"]["function"] = "edit" data["params"]["ctorMsg"]["args"] = self.blockchain_update_params() BlockChain.invoke(USERINFO_URL, data)