Struct parables_testing::linker::Linker [−][src]
pub struct Linker { /* fields omitted */ }A solidity bytecode linker.
Methods
impl Linker[src]
impl Linkerpub fn new() -> Self[src]
pub fn new() -> SelfConstruct a new linker.
pub fn register_source_list(&mut self, source_list: Vec<PathBuf>)[src]
pub fn register_source_list(&mut self, source_list: Vec<PathBuf>)pub fn register_source(&mut self, item: String, source: Source)[src]
pub fn register_source(&mut self, item: String, source: Source)Register a runtime source.
pub fn find_source(&self, address: Address) -> Option<Arc<Source>>[src]
pub fn find_source(&self, address: Address) -> Option<Arc<Source>>Find a corresponding source map for the given address.
pub fn register_runtime_source(&mut self, item: String, source: Source)[src]
pub fn register_runtime_source(&mut self, item: String, source: Source)Register a runtime source.
pub fn find_runtime_source(&self, address: Address) -> Option<Arc<Source>>[src]
pub fn find_runtime_source(&self, address: Address) -> Option<Arc<Source>>Find a corresponding runtime source map for the given address.
pub fn find_file(&self, index: u32) -> Option<&Path>[src]
pub fn find_file(&self, index: u32) -> Option<&Path>Find the corresponding file to an index.
pub fn register_item(&mut self, item: String, address: Address)[src]
pub fn register_item(&mut self, item: String, address: Address)Register an address for an item.
pub fn register_path(&mut self, path: String, address: Address)[src]
pub fn register_path(&mut self, path: String, address: Address)Register an address for a path.
pub fn source(&self, bin: &str, source_map: &str) -> Result<Source, Error>[src]
pub fn source(&self, bin: &str, source_map: &str) -> Result<Source, Error>Construct source information for the given code and source map.
pub fn decode_offsets(&self, code: &str) -> Result<HashMap<usize, usize>, Error>[src]
pub fn decode_offsets(&self, code: &str) -> Result<HashMap<usize, usize>, Error>Decoded the given code into instruction offsets.
pub fn link(&self, code: &str) -> Result<Vec<u8>, Error>[src]
pub fn link(&self, code: &str) -> Result<Vec<u8>, Error>Decode and link the given bytecode.
The bytecode is represented in ascii, where each byte corresponds to a hex character.
Entries to be linked are designated with two underscores __, these should be replaced
with an address corresponding to the linked object.
All other entries should be left preserved.
Trait Implementations
impl Debug for Linker[src]
impl Debug for Linkerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Linker[src]
impl Clone for Linker