Struct ethabi::Function
[−]
[src]
pub struct Function { /* fields omitted */ }
Contract function call builder.
Methods
impl Function
[src]
fn new(interface: FunctionInterface) -> Self
Creates new function call builder.
fn input_params(&self) -> Vec<ParamType>
Returns function params.
fn output_params(&self) -> Vec<ParamType>
Return output params.
fn encode_call(&self, tokens: Vec<Token>) -> Result<Vec<u8>, Error>
Prepares ABI function call with given input params.
fn decode_output(&self, data: Vec<u8>) -> Result<Vec<Token>, Error>
Parses the ABI function output to list of tokens.