pub struct ExecuteGlvWithdrawalBuilder<'a, C> { /* private fields */ }
Expand description
Execute GLV withdrawal builder.
Implementations§
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> ExecuteGlvWithdrawalBuilder<'a, C>
Sourcepub fn hint(&mut self, hint: ExecuteGlvWithdrawalHint) -> &mut Self
pub fn hint(&mut self, hint: ExecuteGlvWithdrawalHint) -> &mut Self
Set hint.
Sourcepub fn close(&mut self, close: bool) -> &mut Self
pub fn close(&mut self, close: bool) -> &mut Self
Set whether to close the GLV deposit after execution.
Sourcepub fn parse_with_pyth_price_updates(
&mut self,
price_updates: Prices,
) -> &mut Self
pub fn parse_with_pyth_price_updates( &mut self, price_updates: Prices, ) -> &mut Self
Parse feeds with the given price udpates map.
Sourcepub fn add_alt(&mut self, account: AddressLookupTableAccount) -> &mut Self
pub fn add_alt(&mut self, account: AddressLookupTableAccount) -> &mut Self
Insert an Address Lookup Table.
Sourcepub async fn prepare_hint(&mut self) -> Result<ExecuteGlvWithdrawalHint>
pub async fn prepare_hint(&mut self) -> Result<ExecuteGlvWithdrawalHint>
Prepare hint.
Trait Implementations§
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> ExecuteWithPythPrices<'a, C> for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> ExecuteWithPythPrices<'a, C> for ExecuteGlvWithdrawalBuilder<'a, C>
Source§fn set_execution_fee(&mut self, lamports: u64)
fn set_execution_fee(&mut self, lamports: u64)
Set execution fee.
Source§async fn context(&mut self) -> Result<PythPullOracleContext>
async fn context(&mut self) -> Result<PythPullOracleContext>
Get the oracle context.
Source§async fn build_rpc_with_price_updates(
&mut self,
price_updates: Prices,
) -> Result<Vec<TransactionBuilder<'a, C, ()>>>
async fn build_rpc_with_price_updates( &mut self, price_updates: Prices, ) -> Result<Vec<TransactionBuilder<'a, C, ()>>>
Build RPC requests with price updates.
Source§fn should_estiamte_execution_fee(&self) -> bool
fn should_estiamte_execution_fee(&self) -> bool
Whether to estimate the execution fee.
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> MakeBundleBuilder<'a, C> for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> MakeBundleBuilder<'a, C> for ExecuteGlvWithdrawalBuilder<'a, C>
Source§async fn build_with_options(
&mut self,
options: BundleOptions,
) -> Result<BundleBuilder<'a, C>>
async fn build_with_options( &mut self, options: BundleOptions, ) -> Result<BundleBuilder<'a, C>>
Build with options.
Source§impl<C: Deref<Target = impl Signer> + Clone> PullOraclePriceConsumer for ExecuteGlvWithdrawalBuilder<'_, C>
impl<C: Deref<Target = impl Signer> + Clone> PullOraclePriceConsumer for ExecuteGlvWithdrawalBuilder<'_, C>
Source§async fn feed_ids(&mut self) -> Result<FeedIds>
async fn feed_ids(&mut self) -> Result<FeedIds>
Returns a reference to tokens and their associated feed IDs that require price updates.
Source§fn process_feeds(
&mut self,
provider: PriceProviderKind,
map: FeedAddressMap,
) -> Result<()>
fn process_feeds( &mut self, provider: PriceProviderKind, map: FeedAddressMap, ) -> Result<()>
Processes the feed address map returned from the pull oracle.
Source§impl<C> SetExecutionFee for ExecuteGlvWithdrawalBuilder<'_, C>
impl<C> SetExecutionFee for ExecuteGlvWithdrawalBuilder<'_, C>
Source§fn set_execution_fee(&mut self, lamports: u64) -> &mut Self
fn set_execution_fee(&mut self, lamports: u64) -> &mut Self
Set execution fee.
Source§fn is_execution_fee_estimation_required(&self) -> bool
fn is_execution_fee_estimation_required(&self) -> bool
Whether the execution fee needed to be estiamted.
Auto Trait Implementations§
impl<'a, C> Freeze for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C> !RefUnwindSafe for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C> !Send for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C> !Sync for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C> Unpin for ExecuteGlvWithdrawalBuilder<'a, C>
impl<'a, C> !UnwindSafe for ExecuteGlvWithdrawalBuilder<'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