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 contractartifact_path
(pathlib.Path
) - The Path to the contract’s artifact directorypaths
(attrdict.AttrDict
) - Paths to eact artifact fileabi
(dict
) - A Python dict of the contract’s ABIbytecode
(str
) - The contract’s compiled bytecode
-
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