pub struct Contract {
pub abi: Option<Value>,
pub metadata: Option<Value>,
pub devdoc: Option<Value>,
pub userdoc: Option<Value>,
pub storage_layout: Option<Value>,
pub evm: Option<EVM>,
pub ir: Option<String>,
pub ir_optimized: Option<String>,
pub hash: Option<String>,
pub factory_dependencies: Option<BTreeMap<String, String>>,
pub missing_libraries: Option<HashSet<String>>,
}
Expand description
The solc --standard-json
output contract.
Fields§
§abi: Option<Value>
The contract ABI.
metadata: Option<Value>
The contract metadata.
devdoc: Option<Value>
The contract developer documentation.
userdoc: Option<Value>
The contract user documentation.
storage_layout: Option<Value>
The contract storage layout.
evm: Option<EVM>
Contract’s bytecode and related objects
ir: Option<String>
The contract IR code.
ir_optimized: Option<String>
The contract optimized IR code.
hash: Option<String>
The contract PolkaVM bytecode hash.
factory_dependencies: Option<BTreeMap<String, String>>
The contract factory dependencies.
missing_libraries: Option<HashSet<String>>
The contract missing libraries.
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