pub struct CreateGlvWithdrawalBuilder<'a, C> { /* private fields */ }
Expand description
Create GLV withdrawal builder.
Implementations§
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> CreateGlvWithdrawalBuilder<'a, C>
Sourcepub fn nonce(&mut self, nonce: NonceBytes) -> &mut Self
pub fn nonce(&mut self, nonce: NonceBytes) -> &mut Self
Set the nonce.
Sourcepub fn max_execution_fee(&mut self, lamports: u64) -> &mut Self
pub fn max_execution_fee(&mut self, lamports: u64) -> &mut Self
Set max execution fee allowed to use.
Sourcepub fn final_long_token(
&mut self,
token: Option<&Pubkey>,
min_amount: u64,
swap_path: Vec<Pubkey>,
) -> &mut Self
pub fn final_long_token( &mut self, token: Option<&Pubkey>, min_amount: u64, swap_path: Vec<Pubkey>, ) -> &mut Self
Final long token config.
Sourcepub fn final_short_token(
&mut self,
token: Option<&Pubkey>,
min_amount: u64,
swap_path: Vec<Pubkey>,
) -> &mut Self
pub fn final_short_token( &mut self, token: Option<&Pubkey>, min_amount: u64, swap_path: Vec<Pubkey>, ) -> &mut Self
Final short token config.
Sourcepub fn glv_token_source(&mut self, address: &Pubkey) -> &mut Self
pub fn glv_token_source(&mut self, address: &Pubkey) -> &mut Self
Set GLV token source.
Sourcepub fn hint(&mut self, hint: CreateGlvWithdrawalHint) -> &mut Self
pub fn hint(&mut self, hint: CreateGlvWithdrawalHint) -> &mut Self
Set hint.
Sourcepub fn should_unwrap_native_token(&mut self, should_unwrap: bool) -> &mut Self
pub fn should_unwrap_native_token(&mut self, should_unwrap: bool) -> &mut Self
Set whether to unwrap native token. Defaults to should unwrap.
Sourcepub fn receiver(&mut self, receiver: Option<Pubkey>) -> &mut Self
pub fn receiver(&mut self, receiver: Option<Pubkey>) -> &mut Self
Set receiver. Defaults to the payer.
Sourcepub async fn prepare_hint(&mut self) -> Result<CreateGlvWithdrawalHint>
pub async fn prepare_hint(&mut self) -> Result<CreateGlvWithdrawalHint>
Prepare hint.
Sourcepub async fn build_with_address(
&mut self,
) -> Result<(TransactionBuilder<'a, C>, Pubkey)>
pub async fn build_with_address( &mut self, ) -> Result<(TransactionBuilder<'a, C>, Pubkey)>
Build.
Auto Trait Implementations§
impl<'a, C> Freeze for CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C> !RefUnwindSafe for CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C> Send for CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C> Sync for CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C> Unpin for CreateGlvWithdrawalBuilder<'a, C>
impl<'a, C> !UnwindSafe for CreateGlvWithdrawalBuilder<'a, C>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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