pub struct CombinedJson {
pub contracts: BTreeMap<String, Contract>,
pub source_list: Option<Vec<String>>,
pub sources: Option<Value>,
pub version: String,
pub revive_version: Option<String>,
}
Expand description
The solc --combined-json
output.
Fields§
§contracts: BTreeMap<String, Contract>
The contract entries.
source_list: Option<Vec<String>>
The list of source files.
sources: Option<Value>
The source code extra data, including the AST.
version: String
The solc
compiler version.
revive_version: Option<String>
The resolc
compiler version.
Implementations§
Source§impl CombinedJson
impl CombinedJson
Sourcepub fn entry(&self, path: &str, entry: &str) -> u32
pub fn entry(&self, path: &str, entry: &str) -> u32
Returns the signature hash of the specified contract and entry.
Sourcepub fn get_full_path(&self, name: &str) -> Option<String>
pub fn get_full_path(&self, name: &str) -> Option<String>
Returns the full contract path which can be found in combined-json
output.
Sourcepub fn remove_evm(&mut self)
pub fn remove_evm(&mut self)
Removes EVM artifacts to prevent their accidental usage.
Trait Implementations§
Source§impl Debug for CombinedJson
impl Debug for CombinedJson
Source§impl<'de> Deserialize<'de> for CombinedJson
impl<'de> Deserialize<'de> for CombinedJson
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 CombinedJson
impl RefUnwindSafe for CombinedJson
impl Send for CombinedJson
impl Sync for CombinedJson
impl Unpin for CombinedJson
impl UnwindSafe for CombinedJson
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