Struct ethabi::Contract
[−]
[src]
pub struct Contract { /* fields omitted */ }
API building calls to contracts ABI.
Methods
impl Contract
[src]
fn new(interface: Interface) -> Self
Initializes contract with ABI specification.
fn constructor(&self) -> Option<Constructor>
Creates constructor call builder.
fn function(&self, name: String) -> Result<Function, Error>
Creates function call builder.
fn event(&self, name: String) -> Result<Event, Error>
Creates event decoder.
fn functions<'a>(&'a self) -> Box<Iterator<Item = Function> + 'a>
Iterate over all functions of the contract in arbitrary order.
fn events<'a>(&'a self) -> Box<Iterator<Item = Event> + 'a>
Iterate over all events of the contract in arbitrary order.
Trait Implementations
impl Clone for Contract
[src]
fn clone(&self) -> Contract
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more