コード例 #1
0
def delete_contract_v1(contract_id: str) -> Tuple[str, int, Dict[str, str]]:
    smart_contracts.delete_contract_v1(contract_id)
    return helpers.flask_http_response(202, helpers.format_success(True))
コード例 #2
0
    def test_delete_contract(self, patch_get_by_id, patch_job_proc):
        smart_contracts.delete_contract_v1("test")

        patch_get_by_id.assert_called_once()
        patch_job_proc.assert_called_once()
コード例 #3
0
def delete_contract_by_txn_type_v1(
        txn_type: str, **kwargs) -> Tuple[str, int, Dict[str, str]]:
    contract_id = smart_contracts.get_id_by_txn_type_v1(txn_type)
    smart_contracts.delete_contract_v1(contract_id)
    return helpers.flask_http_response(202, helpers.format_success(True))