pub struct Contract {Show 14 fields
pub abi: Value,
pub metadata: Value,
pub devdoc: Value,
pub userdoc: Value,
pub storage_layout: Value,
pub transient_storage_layout: Value,
pub evm: Option<EVM>,
pub ir: Option<String>,
pub ir_optimized: String,
pub hash: Option<String>,
pub factory_dependencies_unlinked: BTreeSet<String>,
pub factory_dependencies: BTreeMap<String, String>,
pub missing_libraries: BTreeSet<String>,
pub object_format: Option<ObjectFormat>,
}
Expand description
The solc --standard-json
output contract.
Fields§
§abi: Value
The contract ABI.
metadata: Value
The contract metadata.
devdoc: Value
The contract developer documentation.
userdoc: Value
The contract user documentation.
storage_layout: Value
The contract storage layout.
transient_storage_layout: Value
The contract storage layout.
evm: Option<EVM>
Contract’s bytecode and related objects
ir: Option<String>
The contract IR code.
ir_optimized: String
The contract optimized IR code.
hash: Option<String>
The contract PolkaVM bytecode hash.
factory_dependencies_unlinked: BTreeSet<String>
Unlinked factory dependencies.
factory_dependencies: BTreeMap<String, String>
The contract factory dependencies.
missing_libraries: BTreeSet<String>
Missing linkable libraries.
object_format: Option<ObjectFormat>
Binary object format.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Contract
impl<'de> Deserialize<'de> for Contract
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
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more