Struct ethers_solc::artifacts::contract::CompactContractBytecode
source · pub struct CompactContractBytecode {
pub abi: Option<Abi>,
pub bytecode: Option<CompactBytecode>,
pub deployed_bytecode: Option<CompactDeployedBytecode>,
}
Expand description
Minimal representation of a contract with a present abi and bytecode.
Unlike CompactContractSome
which contains the BytecodeObject
, this holds the whole
Bytecode
object.
Fields§
§abi: Option<Abi>
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>
Implementations§
Trait Implementations§
source§impl Clone for CompactContractBytecode
impl Clone for CompactContractBytecode
source§fn clone(&self) -> CompactContractBytecode
fn clone(&self) -> CompactContractBytecode
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 CompactContractBytecode
impl Debug for CompactContractBytecode
source§impl Default for CompactContractBytecode
impl Default for CompactContractBytecode
source§fn default() -> CompactContractBytecode
fn default() -> CompactContractBytecode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CompactContractBytecode
impl<'de> Deserialize<'de> for CompactContractBytecode
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 CompactContractBytecode> for CompactContractBytecodeCow<'a>
impl<'a> From<&'a CompactContractBytecode> for CompactContractBytecodeCow<'a>
source§fn from(artifact: &'a CompactContractBytecode) -> Self
fn from(artifact: &'a CompactContractBytecode) -> Self
Converts to this type from the input type.
source§impl From<CompactContractBytecode> for CompactContract
impl From<CompactContractBytecode> for CompactContract
source§fn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
source§impl From<CompactContractBytecode> for ContractBytecode
impl From<CompactContractBytecode> for ContractBytecode
source§fn from(c: CompactContractBytecode) -> Self
fn from(c: CompactContractBytecode) -> Self
Converts to this type from the input type.
source§impl From<ConfigurableContractArtifact> for CompactContractBytecode
impl From<ConfigurableContractArtifact> for CompactContractBytecode
source§fn from(artifact: ConfigurableContractArtifact) -> Self
fn from(artifact: ConfigurableContractArtifact) -> Self
Converts to this type from the input type.
source§impl From<Contract> for CompactContractBytecode
impl From<Contract> for CompactContractBytecode
source§impl From<ContractBytecode> for CompactContractBytecode
impl From<ContractBytecode> for CompactContractBytecode
source§fn from(c: ContractBytecode) -> Self
fn from(c: ContractBytecode) -> 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.