Struct access_protocol::instruction::claim_pool_rewards::Accounts
source · pub struct Accounts<'a, T> {
pub stake_pool: &'a T,
pub owner: &'a T,
pub rewards_destination: &'a T,
pub central_state: &'a T,
pub mint: &'a T,
pub spl_token_program: &'a T,
pub owner_royalty_account: &'a T,
pub royalty_ata: Option<&'a T>,
pub royalty_account: Option<&'a T>,
}Expand description
The required accounts for the claim_pool_rewards instruction
Fields§
§stake_pool: &'a TThe stake pool account
owner: &'a TThe stake pool owner account
rewards_destination: &'a TThe rewards destination
central_state: &'a TThe central state account
mint: &'a TThe mint address of the ACCESS token
spl_token_program: &'a TThe SPL token program account
owner_royalty_account: &'a TThe owner’s royalty split account to check if royalties need to be paid
royalty_ata: Option<&'a T>The royalty ATA account
royalty_account: Option<&'a T>The optional royalty account to pay royalties to if there is no owner royalty split account this is be used by the Access NFT contract to pay royalties even for the NFTs owned by the owner
Implementations§
source§impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
pub fn parse( accounts: &'a [AccountInfo<'b>], program_id: &Pubkey ) -> Result<Self, ProgramError>
Trait Implementations§
source§impl<'a> InstructionsAccount for Accounts<'a, Pubkey>
impl<'a> InstructionsAccount for Accounts<'a, Pubkey>
fn get_accounts_vec(&self) -> Vec<AccountMeta>
fn get_instruction<P>( &self, program_id: Pubkey, instruction_id: u8, params: P ) -> Instruction
fn get_instruction_cast<P>(
&self,
program_id: Pubkey,
instruction_id: u8,
params: P
) -> Instructionwhere
P: NoUninit,
fn get_instruction_wrapped_pod<'a, P>(
&self,
program_id: Pubkey,
instruction_id: u8,
params: P
) -> Instructionwhere
P: WrappedPod<'a>,
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for Accounts<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Accounts<'a, T>where
T: Sync,
impl<'a, T> Sync for Accounts<'a, T>where
T: Sync,
impl<'a, T> Unpin for Accounts<'a, T>
impl<'a, T> UnwindSafe for Accounts<'a, T>where
T: RefUnwindSafe,
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