pub trait MulticallItem {
type Decoder: SolCall;
// Required methods
fn value(&self) -> U256;
fn target(&self) -> Address;
fn input(&self) -> Bytes;
// Provided method
fn into_call(self, allow_failure: bool) -> CallItem<Self::Decoder>
where Self: Sized { ... }
}
Expand description
A trait that is to be implemented by a type that can be distilled to a singular contract call item.