pub struct DecreaseLiquidityBuilder { /* private fields */ }Expand description
Instruction builder for DecreaseLiquidity.
§Accounts:
[writable]whirlpool[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[signer]position_authority[writable]position[]position_token_account[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 DecreaseLiquidityBuilder
impl DecreaseLiquidityBuilder
pub fn new() -> Self
pub fn whirlpool(&mut self, whirlpool: Pubkey) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
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_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_min_a(&mut self, token_min_a: u64) -> &mut Self
pub fn token_min_b(&mut self, token_min_b: u64) -> &mut Self
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 DecreaseLiquidityBuilder
impl Clone for DecreaseLiquidityBuilder
Source§fn clone(&self) -> DecreaseLiquidityBuilder
fn clone(&self) -> DecreaseLiquidityBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecreaseLiquidityBuilder
impl Debug for DecreaseLiquidityBuilder
Source§impl Default for DecreaseLiquidityBuilder
impl Default for DecreaseLiquidityBuilder
Source§fn default() -> DecreaseLiquidityBuilder
fn default() -> DecreaseLiquidityBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecreaseLiquidityBuilder
impl RefUnwindSafe for DecreaseLiquidityBuilder
impl Send for DecreaseLiquidityBuilder
impl Sync for DecreaseLiquidityBuilder
impl Unpin for DecreaseLiquidityBuilder
impl UnsafeUnpin for DecreaseLiquidityBuilder
impl UnwindSafe for DecreaseLiquidityBuilder
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