Trait MulticallItem

Source
pub trait MulticallItem {
    type Decoder: SolCall;

    // Required methods
    fn target(&self) -> Address;
    fn input(&self) -> Bytes;
}
Expand description

A trait that is to be implemented by a type that can be distilled to a singular contract call item.

Required Associated Types§

Source

type Decoder: SolCall

Decoder for the return data of the call.

Required Methods§

Source

fn target(&self) -> Address

The target address of the call.

Source

fn input(&self) -> Bytes

ABI-encoded input data for the call.

Implementors§