def serpent_lll_filename(self, contract): """Make the hex filename from the contract name""" if contract.endswith(".py"): contract = re.sub("test_", "", contract) return project_structure.project_filepath("build", contract, ".lll")
def test_filename(self, test): """Format up the test filename""" if test.endswith(".py"): contract = re.sub("test_", "", contract) basename = "test_" + os.path.splitext(os.path.basename(test))[0] return project_structure.project_filepath("test", basename, "py")
def contract_filename(self, contract): """Format up the contract filename""" if contract.endswith(".py"): contract = re.sub("test_", "", contract) extension = project_structure.language_extension(self.contract_language) return project_structure.project_filepath(self.contractdir, contract, extension)