Enum ethers_solc::artifacts::BytecodeObject [−][src]
Expand description
Represents the bytecode of a contracts that might be not fully linked yet.
Variants
Bytecode(Bytes)Fully linked bytecode object
Tuple Fields of Bytecode
0: BytesUnlinked(String)Bytecode as hex string that’s not fully linked yet and contains library placeholders
Tuple Fields of Unlinked
0: StringImplementations
Tries to resolve the unlinked string object a valid bytecode object in place
Returns the string if it is a valid
Link using the fully qualified name of a library
The fully qualified library name is the path of its source file and the library name
separated by : like file.sol:Math
This will replace all occurrences of the library placeholder with the given address.
See also: https://docs.soliditylang.org/en/develop/using-the-compiler.html#library-linking
Link using the file and library names as fully qualified name <file>:<library>
See BytecodeObject::link_fully_qualified
Links the bytecode object with all provided (file, lib, addr)
Whether this object is still unlinked
Whether the bytecode contains a matching placeholder using the qualified name
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for BytecodeObject
impl Send for BytecodeObject
impl Sync for BytecodeObject
impl Unpin for BytecodeObject
impl UnwindSafe for BytecodeObject
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