Exemple #1
0
 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
Exemple #2
0
 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)
Exemple #5
0
 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
Exemple #6
0
 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)
Exemple #7
0
 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)
Exemple #8
0
 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)
Exemple #9
0
 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)