Struct ethers_solc::MinimalCombinedArtifacts
source · [−]pub struct MinimalCombinedArtifacts { /* private fields */ }Expand description
An Artifact implementation that uses a compact representation
Creates a single json artifact with
{
"abi": [],
"bytecode": {...},
"deployedBytecode": {...}
}Trait Implementations
sourceimpl ArtifactOutput for MinimalCombinedArtifacts
impl ArtifactOutput for MinimalCombinedArtifacts
type Artifact = CompactContractBytecode
type Artifact = CompactContractBytecode
Represents the artifact that will be stored for a Contract
sourcefn contract_to_artifact(
&self,
_file: &str,
_name: &str,
contract: Contract,
_source_file: Option<&SourceFile>
) -> Self::Artifact
fn contract_to_artifact(
&self,
_file: &str,
_name: &str,
contract: Contract,
_source_file: Option<&SourceFile>
) -> Self::Artifact
Convert a contract to the artifact type Read more
sourcefn standalone_source_file_to_artifact(
&self,
_path: &str,
_file: &VersionedSourceFile
) -> Option<Self::Artifact>
fn standalone_source_file_to_artifact(
&self,
_path: &str,
_file: &VersionedSourceFile
) -> Option<Self::Artifact>
This converts a SourceFile that doesn’t contain any contract definitions (interfaces,
contracts, libraries) to an artifact. Read more
sourcefn on_output(
&self,
contracts: &VersionedContracts,
sources: &VersionedSourceFiles,
layout: &ProjectPathsConfig
) -> Result<Artifacts<Self::Artifact>>
fn on_output(
&self,
contracts: &VersionedContracts,
sources: &VersionedSourceFiles,
layout: &ProjectPathsConfig
) -> Result<Artifacts<Self::Artifact>>
Handle the aggregated set of compiled contracts from the solc crate::CompilerOutput. Read more
sourcefn write_contract_extras(&self, contract: &Contract, file: &Path) -> Result<()>
fn write_contract_extras(&self, contract: &Contract, file: &Path) -> Result<()>
Write additional files for the contract
sourcefn write_extras(
&self,
contracts: &VersionedContracts,
layout: &ProjectPathsConfig
) -> Result<()>
fn write_extras(
&self,
contracts: &VersionedContracts,
layout: &ProjectPathsConfig
) -> Result<()>
Writes additional files for the contracts if the included in the Contract, such as ir,
ewasm, iropt. Read more
sourcefn output_file_name(name: impl AsRef<str>) -> PathBuf
fn output_file_name(name: impl AsRef<str>) -> PathBuf
Returns the file name for the contract’s artifact
Greeter.json Read more
sourcefn output_file_name_versioned(
name: impl AsRef<str>,
version: &Version
) -> PathBuf
fn output_file_name_versioned(
name: impl AsRef<str>,
version: &Version
) -> PathBuf
Returns the file name for the contract’s artifact and the given version
Greeter.0.8.11.json Read more
sourcefn output_file(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>
) -> PathBuf
fn output_file(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>
) -> PathBuf
Returns the path to the contract’s artifact location based on the contract’s file and name Read more
sourcefn output_file_versioned(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>,
version: &Version
) -> PathBuf
fn output_file_versioned(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>,
version: &Version
) -> PathBuf
Returns the path to the contract’s artifact location based on the contract’s file, name and version Read more
sourcefn contract_name(file: impl AsRef<Path>) -> Option<String>
fn contract_name(file: impl AsRef<Path>) -> Option<String>
The inverse of contract_file_name Read more
sourcefn output_exists(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>,
root: impl AsRef<Path>
) -> bool
fn output_exists(
contract_file: impl AsRef<Path>,
name: impl AsRef<str>,
root: impl AsRef<Path>
) -> bool
Whether the corresponding artifact of the given contract file and name exists
sourcefn read_cached_artifact(path: impl AsRef<Path>) -> Result<Self::Artifact>
fn read_cached_artifact(path: impl AsRef<Path>) -> Result<Self::Artifact>
Read the artifact that’s stored at the given path Read more
sourcefn read_cached_artifacts<T, I>(
files: I
) -> Result<BTreeMap<PathBuf, Self::Artifact>> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
fn read_cached_artifacts<T, I>(
files: I
) -> Result<BTreeMap<PathBuf, Self::Artifact>> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
Read the cached artifacts that are located the paths the iterator yields Read more
sourcefn output_to_artifacts(
&self,
contracts: &VersionedContracts,
sources: &VersionedSourceFiles
) -> Artifacts<Self::Artifact>
fn output_to_artifacts(
&self,
contracts: &VersionedContracts,
sources: &VersionedSourceFiles
) -> Artifacts<Self::Artifact>
Convert the compiler output into a set of artifacts Read more
sourceimpl Clone for MinimalCombinedArtifacts
impl Clone for MinimalCombinedArtifacts
sourcefn clone(&self) -> MinimalCombinedArtifacts
fn clone(&self) -> MinimalCombinedArtifacts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MinimalCombinedArtifacts
impl Debug for MinimalCombinedArtifacts
sourceimpl Default for MinimalCombinedArtifacts
impl Default for MinimalCombinedArtifacts
sourcefn default() -> MinimalCombinedArtifacts
fn default() -> MinimalCombinedArtifacts
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MinimalCombinedArtifacts> for MinimalCombinedArtifacts
impl PartialEq<MinimalCombinedArtifacts> for MinimalCombinedArtifacts
sourcefn eq(&self, other: &MinimalCombinedArtifacts) -> bool
fn eq(&self, other: &MinimalCombinedArtifacts) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MinimalCombinedArtifacts) -> bool
fn ne(&self, other: &MinimalCombinedArtifacts) -> bool
This method tests for !=.
impl Copy for MinimalCombinedArtifacts
impl Eq for MinimalCombinedArtifacts
impl StructuralEq for MinimalCombinedArtifacts
impl StructuralPartialEq for MinimalCombinedArtifacts
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more