Struct ethers_solc::artifacts::Bytecode [−][src]
pub struct Bytecode {
pub function_debug_data: BTreeMap<String, FunctionDebugData>,
pub object: BytecodeObject,
pub opcodes: Option<String>,
pub source_map: Option<String>,
pub generated_sources: Vec<GeneratedSource>,
pub link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>,
}
Fields
function_debug_data: BTreeMap<String, FunctionDebugData>
Debugging information at function level
object: BytecodeObject
The bytecode as a hex string.
opcodes: Option<String>
Opcodes list (string)
source_map: Option<String>
The source mapping as a string. See the source mapping definition.
generated_sources: Vec<GeneratedSource>
Array of sources generated by the compiler. Currently only contains a single Yul file.
link_references: BTreeMap<String, BTreeMap<String, Vec<Offsets>>>
If given, this is an unlinked object.
Implementations
Returns the parsed source map
See also https://docs.soliditylang.org/en/v0.8.10/internals/source_mappings.html
Same as Bytecode::link
but with fully qualified name (file.sol:Math
)
Tries to link the bytecode object with the file
and library
name.
Replaces all library placeholders with the given address.
Returns true if the bytecode object is fully linked, false otherwise This is a noop if the bytecode object is already fully linked.
Links the bytecode object with all provided (file, lib, addr)
pub fn link_all_fully_qualified<I, S>(&mut self, libs: I) -> bool where
I: IntoIterator<Item = (S, Address)>,
S: AsRef<str>,
pub fn link_all_fully_qualified<I, S>(&mut self, libs: I) -> bool where
I: IntoIterator<Item = (S, Address)>,
S: AsRef<str>,
Links the bytecode object with all provided (fully_qualified, addr)
Trait Implementations
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 RefUnwindSafe for Bytecode
impl UnwindSafe for Bytecode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more