pub struct Multicall<C> { /* private fields */ }
Implementations§
Source§impl<C: Calls> Multicall<C>
impl<C: Calls> Multicall<C>
pub fn new(calls: C) -> Self
pub fn to(self, to: impl Into<NameOrAddress>) -> Self
pub fn from(self, from: Address) -> Self
pub async fn estimate_gas<P: Middleware>( self, provider: &P, block: Option<BlockId>, ) -> Result<U256, P::Error>
pub async fn call<P: Middleware>( self, provider: &P, block: Option<BlockId>, ) -> Result<(U256, C::Results), Error<P>>
Trait Implementations§
Auto Trait Implementations§
impl<C> !Freeze for Multicall<C>
impl<C> RefUnwindSafe for Multicall<C>where
C: RefUnwindSafe,
impl<C> Send for Multicall<C>where
C: Send,
impl<C> Sync for Multicall<C>where
C: Sync,
impl<C> Unpin for Multicall<C>where
C: Unpin,
impl<C> UnwindSafe for Multicall<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more