Trait cubist_sdk::core::ContractCompiler
source · 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§
sourcefn compile_file(&self, file: &Path) -> Result<CompileResult>
fn compile_file(&self, file: &Path) -> Result<CompileResult>
Compile a given contract file.
sourcefn find_compiled_contracts(
&self,
source_file: &Path
) -> Result<HashMap<NetworkName, ContractInfo>>
fn find_compiled_contracts(
&self,
source_file: &Path
) -> Result<HashMap<NetworkName, ContractInfo>>
Find all compiled contracts (on disk) originating from a given source file.