pub struct ClaimCreatorFeesBuilder { /* private fields */ }Expand description
Instruction builder for ClaimCreatorFees.
§Accounts:
[signer]claimer[writable, signer]payer[writable, optional]bonding_curve (default to PDA derived from ‘bondingCurve’)[writable, optional]creator_fee_config (default to PDA derived from ‘creatorFeeConfig’)[]nexus_global_config (fixed to ‘3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr’)[]base_mint[]quote_mint[writable, optional]quote_vault (default to PDA derived from ‘quoteVault’)[]destination_owner[writable, optional]destination (default to PDA derived from ‘destination’)[]quote_token_program[]associated_token_program (fixed to ‘ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL’)[]system_program (fixed to ‘11111111111111111111111111111111’)[]event_authority (fixed to ‘FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T’)[]program (fixed to ‘5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP’)
Implementations§
Source§impl ClaimCreatorFeesBuilder
impl ClaimCreatorFeesBuilder
pub fn new( claimer: Address, payer: Address, base_mint: Address, quote_mint: Address, destination_owner: Address, quote_token_program: Address, ) -> Self
Sourcepub fn bonding_curve(&mut self, bonding_curve: Address) -> &mut Self
pub fn bonding_curve(&mut self, bonding_curve: Address) -> &mut Self
[optional account, default to PDA derived from 'bondingCurve']
Sourcepub fn creator_fee_config(&mut self, creator_fee_config: Address) -> &mut Self
pub fn creator_fee_config(&mut self, creator_fee_config: Address) -> &mut Self
[optional account, default to PDA derived from 'creatorFeeConfig']
Sourcepub fn quote_vault(&mut self, quote_vault: Address) -> &mut Self
pub fn quote_vault(&mut self, quote_vault: Address) -> &mut Self
[optional account, default to PDA derived from 'quoteVault']
Sourcepub fn destination(&mut self, destination: Address) -> &mut Self
pub fn destination(&mut self, destination: Address) -> &mut Self
[optional account, default to PDA derived from 'destination']
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 ClaimCreatorFeesBuilder
impl Clone for ClaimCreatorFeesBuilder
Auto Trait Implementations§
impl Freeze for ClaimCreatorFeesBuilder
impl RefUnwindSafe for ClaimCreatorFeesBuilder
impl Send for ClaimCreatorFeesBuilder
impl Sync for ClaimCreatorFeesBuilder
impl Unpin for ClaimCreatorFeesBuilder
impl UnsafeUnpin for ClaimCreatorFeesBuilder
impl UnwindSafe for ClaimCreatorFeesBuilder
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