pub trait ContractCompiler {
    fn clean(&self) -> Result<()>;
    fn compile_file(&self, file: &Path) -> Result<CompileResult>;
    fn find_compiled_contracts(
        &self,
        source_file: &Path
    ) -> Result<HashMap<NetworkName, ContractInfo>>; }
Expand description

An abstraction for a contract compiler.

Required Methods§

Clean build artifacts.

Compile a given contract file.

Find all compiled contracts (on disk) originating from a given source file.

Implementors§