Struct ethabi::Contract [] [src]

pub struct Contract {
    pub constructor: Option<Constructor>,
    pub functions: HashMap<String, Function>,
    pub events: HashMap<String, Event>,
    pub fallback: bool,
}

API building calls to contracts ABI.

Fields

Contract constructor.

Contract functions.

Contract events.

Contract has fallback function.

Methods

impl Contract
[src]

[src]

Loads contract from json.

[src]

Creates constructor call builder.

[src]

Creates function call builder.

[src]

Creates event decoder.

[src]

Iterate over all functions of the contract in arbitrary order.

[src]

Iterate over all events of the contract in arbitrary order.

[src]

Returns true if contract has fallback

Trait Implementations

impl Clone for Contract
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Contract
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Contract
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> Deserialize<'a> for Contract
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more