pub struct NativeFeePaymentMethod { /* private fields */ }Expand description
Pays transaction fees using the sender’s existing Fee Juice balance.
This is the default fee payment strategy. It doesn’t add any extra function calls to the transaction — it simply declares who is paying. The sender must already have sufficient Fee Juice balance.
Implementations§
Source§impl NativeFeePaymentMethod
impl NativeFeePaymentMethod
Sourcepub fn new(sender: AztecAddress) -> NativeFeePaymentMethod
pub fn new(sender: AztecAddress) -> NativeFeePaymentMethod
Create a new native fee payment method.
sender is the account that will pay fees from its existing Fee Juice balance.
Trait Implementations§
Source§impl FeePaymentMethod for NativeFeePaymentMethod
impl FeePaymentMethod for NativeFeePaymentMethod
Source§fn get_asset<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AztecAddress, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
fn get_asset<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AztecAddress, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
Returns the address of the asset used for fee payment.
For fee juice methods, this is the FeeJuice protocol contract address.
Source§fn get_fee_payer<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AztecAddress, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
fn get_fee_payer<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AztecAddress, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
Returns the address of the entity paying the fee.
Source§fn get_fee_execution_payload<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ExecutionPayload, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
fn get_fee_execution_payload<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ExecutionPayload, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
NativeFeePaymentMethod: 'async_trait,
Builds an
ExecutionPayload containing the function calls and
auth witnesses needed to pay the transaction fee.Auto Trait Implementations§
impl Freeze for NativeFeePaymentMethod
impl RefUnwindSafe for NativeFeePaymentMethod
impl Send for NativeFeePaymentMethod
impl Sync for NativeFeePaymentMethod
impl Unpin for NativeFeePaymentMethod
impl UnwindSafe for NativeFeePaymentMethod
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more