pub struct ConfigurableContractArtifact {Show 19 fields
pub abi: Option<LosslessAbi>,
pub bytecode: Option<CompactBytecode>,
pub deployed_bytecode: Option<CompactDeployedBytecode>,
pub assembly: Option<String>,
pub opcodes: Option<String>,
pub method_identifiers: Option<BTreeMap<String, String>>,
pub generated_sources: Vec<GeneratedSource>,
pub function_debug_data: Option<BTreeMap<String, FunctionDebugData>>,
pub gas_estimates: Option<GasEstimates>,
pub raw_metadata: Option<String>,
pub metadata: Option<Metadata>,
pub storage_layout: Option<StorageLayout>,
pub userdoc: Option<UserDoc>,
pub devdoc: Option<DevDoc>,
pub ir: Option<String>,
pub ir_optimized: Option<String>,
pub ewasm: Option<Ewasm>,
pub ast: Option<Ast>,
pub id: Option<u32>,
}Expand description
Represents the Artifact that ConfigurableArtifacts emits.
This is essentially a superset of CompactContractBytecode.
Fields
abi: Option<LosslessAbi>The Ethereum Contract ABI. If empty, it is represented as an empty array. See https://docs.soliditylang.org/en/develop/abi-spec.html
bytecode: Option<CompactBytecode>deployed_bytecode: Option<CompactDeployedBytecode>assembly: Option<String>opcodes: Option<String>method_identifiers: Option<BTreeMap<String, String>>generated_sources: Vec<GeneratedSource>function_debug_data: Option<BTreeMap<String, FunctionDebugData>>gas_estimates: Option<GasEstimates>raw_metadata: Option<String>metadata: Option<Metadata>storage_layout: Option<StorageLayout>userdoc: Option<UserDoc>devdoc: Option<DevDoc>ir: Option<String>ir_optimized: Option<String>ewasm: Option<Ewasm>ast: Option<Ast>id: Option<u32>The identifier of the source file
Implementations
sourceimpl ConfigurableContractArtifact
impl ConfigurableContractArtifact
sourcepub fn into_contract_bytecode(self) -> CompactContractBytecode
pub fn into_contract_bytecode(self) -> CompactContractBytecode
Returns the inner element that contains the core bytecode related information
sourcepub fn all_link_references(
&self
) -> BTreeMap<String, BTreeMap<String, Vec<Offsets>>>
pub fn all_link_references(
&self
) -> BTreeMap<String, BTreeMap<String, Vec<Offsets>>>
Looks for all link references in deployment and runtime bytecodes
sourcepub fn source_file(&self) -> Option<SourceFile>
pub fn source_file(&self) -> Option<SourceFile>
Returns the source file of this artifact’s contract
Trait Implementations
sourceimpl Clone for ConfigurableContractArtifact
impl Clone for ConfigurableContractArtifact
sourcefn clone(&self) -> ConfigurableContractArtifact
fn clone(&self) -> ConfigurableContractArtifact
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 moresourceimpl Debug for ConfigurableContractArtifact
impl Debug for ConfigurableContractArtifact
sourceimpl Default for ConfigurableContractArtifact
impl Default for ConfigurableContractArtifact
sourcefn default() -> ConfigurableContractArtifact
fn default() -> ConfigurableContractArtifact
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConfigurableContractArtifact
impl<'de> Deserialize<'de> for ConfigurableContractArtifact
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'a>
sourcefn from(artifact: &'a ConfigurableContractArtifact) -> Self
fn from(artifact: &'a ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<ConfigurableContractArtifact> for CompactContract
impl From<ConfigurableContractArtifact> for CompactContract
sourcefn from(artifact: ConfigurableContractArtifact) -> Self
fn from(artifact: ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl From<ConfigurableContractArtifact> for CompactContractBytecode
impl From<ConfigurableContractArtifact> for CompactContractBytecode
sourcefn from(artifact: ConfigurableContractArtifact) -> Self
fn from(artifact: ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConfigurableContractArtifact> for ConfigurableContractArtifact
impl PartialEq<ConfigurableContractArtifact> for ConfigurableContractArtifact
sourcefn eq(&self, other: &ConfigurableContractArtifact) -> bool
fn eq(&self, other: &ConfigurableContractArtifact) -> bool
impl StructuralPartialEq for ConfigurableContractArtifact
Auto Trait Implementations
impl RefUnwindSafe for ConfigurableContractArtifact
impl Send for ConfigurableContractArtifact
impl Sync for ConfigurableContractArtifact
impl Unpin for ConfigurableContractArtifact
impl UnwindSafe for ConfigurableContractArtifact
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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