pub struct IncreaseLiquidityV2Builder { /* private fields */ }Expand description
Instruction builder for IncreaseLiquidityV2.
§Accounts:
[writable]vortex[]token_program_a[]token_program_b[]memo_program[signer]position_authority[writable]position[]position_token_account[]token_mint_a[]token_mint_b[writable]token_owner_account_a[writable]token_owner_account_b[writable]token_vault_a[writable]token_vault_b[writable]tick_array_lower[writable]tick_array_upper
Implementations§
Source§impl IncreaseLiquidityV2Builder
impl IncreaseLiquidityV2Builder
pub fn new() -> Self
pub fn vortex(&mut self, vortex: Pubkey) -> &mut Self
pub fn token_program_a(&mut self, token_program_a: Pubkey) -> &mut Self
pub fn token_program_b(&mut self, token_program_b: Pubkey) -> &mut Self
pub fn memo_program(&mut self, memo_program: Pubkey) -> &mut Self
pub fn position(&mut self, position: Pubkey) -> &mut Self
pub fn position_token_account( &mut self, position_token_account: Pubkey, ) -> &mut Self
pub fn token_mint_a(&mut self, token_mint_a: Pubkey) -> &mut Self
pub fn token_mint_b(&mut self, token_mint_b: Pubkey) -> &mut Self
pub fn token_owner_account_a( &mut self, token_owner_account_a: Pubkey, ) -> &mut Self
pub fn token_owner_account_b( &mut self, token_owner_account_b: Pubkey, ) -> &mut Self
pub fn token_vault_a(&mut self, token_vault_a: Pubkey) -> &mut Self
pub fn token_vault_b(&mut self, token_vault_b: Pubkey) -> &mut Self
pub fn tick_array_lower(&mut self, tick_array_lower: Pubkey) -> &mut Self
pub fn tick_array_upper(&mut self, tick_array_upper: Pubkey) -> &mut Self
pub fn liquidity_amount(&mut self, liquidity_amount: u128) -> &mut Self
pub fn token_max_a(&mut self, token_max_a: u64) -> &mut Self
pub fn token_max_b(&mut self, token_max_b: u64) -> &mut Self
Sourcepub fn remaining_accounts_info(
&mut self,
remaining_accounts_info: RemainingAccountsInfo,
) -> &mut Self
pub fn remaining_accounts_info( &mut self, remaining_accounts_info: RemainingAccountsInfo, ) -> &mut Self
[optional argument]
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for IncreaseLiquidityV2Builder
impl Clone for IncreaseLiquidityV2Builder
Source§fn clone(&self) -> IncreaseLiquidityV2Builder
fn clone(&self) -> IncreaseLiquidityV2Builder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncreaseLiquidityV2Builder
impl Debug for IncreaseLiquidityV2Builder
Source§impl Default for IncreaseLiquidityV2Builder
impl Default for IncreaseLiquidityV2Builder
Source§fn default() -> IncreaseLiquidityV2Builder
fn default() -> IncreaseLiquidityV2Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IncreaseLiquidityV2Builder
impl RefUnwindSafe for IncreaseLiquidityV2Builder
impl Send for IncreaseLiquidityV2Builder
impl Sync for IncreaseLiquidityV2Builder
impl Unpin for IncreaseLiquidityV2Builder
impl UnwindSafe for IncreaseLiquidityV2Builder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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