pub struct UnstakeBuilder { /* private fields */ }Expand description
Instruction builder for Unstake.
§Accounts:
[writable, signer]unstaker_account[writable]state_account[writable]pending_withdraw_account[writable]unstaker_xorca_ata[writable]xorca_mint_account[]orca_mint_account[]vault_account[]system_program_account[]token_program_account
Implementations§
Source§impl UnstakeBuilder
impl UnstakeBuilder
pub fn new() -> Self
pub fn unstaker_account(&mut self, unstaker_account: Pubkey) -> &mut Self
pub fn state_account(&mut self, state_account: Pubkey) -> &mut Self
pub fn pending_withdraw_account( &mut self, pending_withdraw_account: Pubkey, ) -> &mut Self
pub fn unstaker_xorca_ata(&mut self, unstaker_xorca_ata: Pubkey) -> &mut Self
pub fn xorca_mint_account(&mut self, xorca_mint_account: Pubkey) -> &mut Self
pub fn orca_mint_account(&mut self, orca_mint_account: Pubkey) -> &mut Self
pub fn vault_account(&mut self, vault_account: Pubkey) -> &mut Self
pub fn system_program_account( &mut self, system_program_account: Pubkey, ) -> &mut Self
pub fn token_program_account( &mut self, token_program_account: Pubkey, ) -> &mut Self
pub fn xorca_unstake_amount(&mut self, xorca_unstake_amount: u64) -> &mut Self
pub fn withdraw_index(&mut self, withdraw_index: u8) -> &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 UnstakeBuilder
impl Clone for UnstakeBuilder
Source§fn clone(&self) -> UnstakeBuilder
fn clone(&self) -> UnstakeBuilder
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnstakeBuilder
impl Debug for UnstakeBuilder
Source§impl Default for UnstakeBuilder
impl Default for UnstakeBuilder
Source§fn default() -> UnstakeBuilder
fn default() -> UnstakeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnstakeBuilder
impl RefUnwindSafe for UnstakeBuilder
impl Send for UnstakeBuilder
impl Sync for UnstakeBuilder
impl Unpin for UnstakeBuilder
impl UnwindSafe for UnstakeBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)