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))
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()
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))