compile.artifacts Module

The compile.artifacts module

class solidbyte.compile.artifacts.CompiledContract(name: str, artifact_path: Union[pathlib.Path, str])[source]

A representation of a compiled contract.

Attributes:
  • name (str) - The name of the contract
  • artifact_path (pathlib.Path) - The Path to the contract’s artifact directory
  • paths (attrdict.AttrDict) - Paths to eact artifact file
  • abi (dict) - A Python dict of the contract’s ABI
  • bytecode (str) - The contract’s compiled bytecode
__init__(name: str, artifact_path: Union[pathlib.Path, str]) → None[source]

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

solidbyte.compile.artifacts.artifacts(project_dir: Union[pathlib.Path, str]) → Set[solidbyte.compile.artifacts.CompiledContract][source]

Get an solidbyte.compile.artifacts.CompiledContract object for all compiled contracts

solidbyte.compile.artifacts.available_contract_names(project_dir: Union[pathlib.Path, str]) → Set[str][source]

Return the names of all compiled contracts

solidbyte.compile.artifacts.contract_artifacts(name: str, project_dir: Union[pathlib.Path, str] = None) → solidbyte.compile.artifacts.CompiledContract[source]

Return a solidbyte.compile.artifacts.CompiledContract object with the artifacts for a contract