compile.compiler Module

The compile.compiler module

Solidity compiling functionality

class solidbyte.compile.compiler.Compiler(project_dir=None)[source]

Handle compiling of contracts

__init__(project_dir=None)[source]

Initialize self. See help(type(self)) for accurate signature.

compile(filename)[source]

Compile a single source contract at filename

Parameters:filename – Source contract’s filename
compile_all()[source]

Compile all source contracts

solc_version

Get the version of the solidity copmiler

Returns:A str representation of the version
version

A list of all compiler versions

vyper_version

Get the version of the vyper copmiler

Returns:A str representation of the version
solidbyte.compile.compiler.get_all_source_files(contracts_dir: pathlib.Path) → Set[pathlib.Path][source]

Return a Path for every contract source file in the provided directory and any sub- directories.

Parameters:contracts_dir – The Path of the directory to start at.
Returns:List of Paths to every source file in the directory.