Struct ethers_solc::hh::HardhatArtifact
source · pub struct HardhatArtifact {
pub format: String,
pub contract_name: String,
pub source_name: String,
pub abi: LosslessAbi,
pub bytecode: Option<BytecodeObject>,
pub deployed_bytecode: Option<BytecodeObject>,
pub link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>,
pub deployed_link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>,
}
Expand description
A hardhat artifact
Fields§
§format: String
§contract_name: String
A string with the contract’s name.
source_name: String
The source name of this contract in the workspace like contracts/Greeter.sol
abi: LosslessAbi
The contract’s ABI
bytecode: Option<BytecodeObject>
A “0x”-prefixed hex string of the unlinked deployment bytecode. If the contract is not deployable, this has the string “0x”
deployed_bytecode: Option<BytecodeObject>
A “0x”-prefixed hex string of the unlinked runtime/deployed bytecode. If the contract is not deployable, this has the string “0x”
link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>
The bytecode’s link references object as returned by solc. If the contract doesn’t need to be linked, this value contains an empty object.
deployed_link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>
The deployed bytecode’s link references object as returned by solc. If the contract doesn’t need to be linked, this value contains an empty object.
Trait Implementations§
source§impl Clone for HardhatArtifact
impl Clone for HardhatArtifact
source§fn clone(&self) -> HardhatArtifact
fn clone(&self) -> HardhatArtifact
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HardhatArtifact
impl Debug for HardhatArtifact
source§impl<'de> Deserialize<'de> for HardhatArtifact
impl<'de> Deserialize<'de> for HardhatArtifact
source§fn 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
source§impl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a HardhatArtifact> for CompactContractBytecodeCow<'a>
source§fn from(artifact: &'a HardhatArtifact) -> Self
fn from(artifact: &'a HardhatArtifact) -> Self
Converts to this type from the input type.
source§impl From<HardhatArtifact> for CompactContract
impl From<HardhatArtifact> for CompactContract
source§fn from(artifact: HardhatArtifact) -> Self
fn from(artifact: HardhatArtifact) -> Self
Converts to this type from the input type.
source§impl From<HardhatArtifact> for CompactContractBytecode
impl From<HardhatArtifact> for CompactContractBytecode
source§fn from(artifact: HardhatArtifact) -> Self
fn from(artifact: HardhatArtifact) -> Self
Converts to this type from the input type.
source§impl From<HardhatArtifact> for ContractBytecode
impl From<HardhatArtifact> for ContractBytecode
source§fn from(artifact: HardhatArtifact) -> Self
fn from(artifact: HardhatArtifact) -> Self
Converts to this type from the input type.