pub struct SpendMulticall { /* private fields */ }Expand description
A MulticallBuilder seeded with a Trident spend, carrying the
attestation’s provider so .send() doesn’t need one passed in.
Built by SpendAttestation::chain and
SpendAttestation::chain_value. Forwards the common
MulticallBuilder push methods so additional calls can be appended with
normal builder ergonomics.
Implementations§
Source§impl SpendMulticall
impl SpendMulticall
Sourcepub fn call<C: SolCall>(self, contract: Address, call: &C) -> Self
pub fn call<C: SolCall>(self, contract: Address, call: &C) -> Self
Appends a zero-value contract call to the batch.
Sourcepub fn call_with_value<C: SolCall>(
self,
contract: Address,
call: &C,
value: U256,
) -> Self
pub fn call_with_value<C: SolCall>( self, contract: Address, call: &C, value: U256, ) -> Self
Appends a value-bearing contract call to the batch.
Sourcepub fn send_value(self, to: Address, value: U256) -> Self
pub fn send_value(self, to: Address, value: U256) -> Self
Appends a pure ETH transfer to the batch.
Sourcepub async fn send(
self,
) -> Result<PendingTransactionBuilder<AnyNetwork>, MulticallError>
pub async fn send( self, ) -> Result<PendingTransactionBuilder<AnyNetwork>, MulticallError>
Submits the batch using the provider and 7702-delegated signer address carried since construction.
Sourcepub fn into_parts(self) -> (MulticallBuilder, DynProvider<AnyNetwork>, Address)
pub fn into_parts(self) -> (MulticallBuilder, DynProvider<AnyNetwork>, Address)
Drops the wrapper and returns the underlying MulticallBuilder, the
provider, and the 7702-delegated signer address — for callers that
need the raw pieces.
Auto Trait Implementations§
impl !RefUnwindSafe for SpendMulticall
impl !UnwindSafe for SpendMulticall
impl Freeze for SpendMulticall
impl Send for SpendMulticall
impl Sync for SpendMulticall
impl Unpin for SpendMulticall
impl UnsafeUnpin for SpendMulticall
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request