pub struct OpenBundledPositionBuilder { /* private fields */ }
Expand description
Instruction builder for OpenBundledPosition
.
§Accounts:
[writable]
bundled_position[writable]
position_bundle[]
position_bundle_token_account[signer]
position_bundle_authority[]
fusion_pool[writable, signer]
funder[optional]
system_program (default to11111111111111111111111111111111
)[optional]
rent (default toSysvarRent111111111111111111111111111111111
)
Implementations§
Source§impl OpenBundledPositionBuilder
impl OpenBundledPositionBuilder
pub fn new() -> Self
pub fn bundled_position(&mut self, bundled_position: Pubkey) -> &mut Self
pub fn position_bundle(&mut self, position_bundle: Pubkey) -> &mut Self
pub fn position_bundle_token_account( &mut self, position_bundle_token_account: Pubkey, ) -> &mut Self
pub fn fusion_pool(&mut self, fusion_pool: Pubkey) -> &mut Self
pub fn funder(&mut self, funder: Pubkey) -> &mut Self
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
Sourcepub fn rent(&mut self, rent: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
[optional account, default to 'SysvarRent111111111111111111111111111111111']
pub fn bundle_index(&mut self, bundle_index: u16) -> &mut Self
pub fn tick_lower_index(&mut self, tick_lower_index: i32) -> &mut Self
pub fn tick_upper_index(&mut self, tick_upper_index: i32) -> &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 OpenBundledPositionBuilder
impl Clone for OpenBundledPositionBuilder
Source§fn clone(&self) -> OpenBundledPositionBuilder
fn clone(&self) -> OpenBundledPositionBuilder
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 OpenBundledPositionBuilder
impl Debug for OpenBundledPositionBuilder
Source§impl Default for OpenBundledPositionBuilder
impl Default for OpenBundledPositionBuilder
Source§fn default() -> OpenBundledPositionBuilder
fn default() -> OpenBundledPositionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenBundledPositionBuilder
impl RefUnwindSafe for OpenBundledPositionBuilder
impl Send for OpenBundledPositionBuilder
impl Sync for OpenBundledPositionBuilder
impl Unpin for OpenBundledPositionBuilder
impl UnwindSafe for OpenBundledPositionBuilder
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