Struct ethers::solc::MinimalCombinedArtifacts [−][src]
pub struct MinimalCombinedArtifacts;
Expand description
An Artifacts implementation that uses a compact representation
Creates a single json artifact with
{
"abi": [],
"bin": "...",
"runtime-bin": "..."
}
Trait Implementations
type Artifact = CompactContract
type Artifact = CompactContract
How Artifacts are stored
pub fn on_output(
output: &CompilerOutput,
layout: &ProjectPathsConfig
) -> Result<(), SolcError>
pub fn on_output(
output: &CompilerOutput,
layout: &ProjectPathsConfig
) -> Result<(), SolcError>
Handle the compiler output.
pub fn read_cached_artifact(
path: impl AsRef<Path>
) -> Result<<MinimalCombinedArtifacts as ArtifactOutput>::Artifact, SolcError>
pub fn contract_to_artifact(
contract: Contract
) -> <MinimalCombinedArtifacts as ArtifactOutput>::Artifact
pub fn contract_to_artifact(
contract: Contract
) -> <MinimalCombinedArtifacts as ArtifactOutput>::Artifact
Convert a contract to the artifact type
Returns the file name for the contract’s artifact
Returns the path to the contract’s artifact location based on the contract’s file and name Read more
The inverse of contract_file_name
Read more
Whether the corresponding artifact of the given contract file and name exists
fn read_cached_artifacts<T, I>(
files: I
) -> Result<BTreeMap<PathBuf, Self::Artifact>, SolcError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
fn read_cached_artifacts<T, I>(
files: I
) -> Result<BTreeMap<PathBuf, Self::Artifact>, SolcError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
Read the cached artifacts from disk
fn output_to_artifacts(
output: CompilerOutput
) -> BTreeMap<String, BTreeMap<String, Self::Artifact>>
fn output_to_artifacts(
output: CompilerOutput
) -> BTreeMap<String, BTreeMap<String, Self::Artifact>>
Convert the compiler output into a set of artifacts
Auto Trait Implementations
impl RefUnwindSafe for MinimalCombinedArtifacts
impl Send for MinimalCombinedArtifacts
impl Sync for MinimalCombinedArtifacts
impl Unpin for MinimalCombinedArtifacts
impl UnwindSafe for MinimalCombinedArtifacts
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more