pub struct BurnEditionNftCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub print_edition_mint: &'b AccountInfo<'a>,
pub master_edition_mint: &'b AccountInfo<'a>,
pub print_edition_token_account: &'b AccountInfo<'a>,
pub master_edition_token_account: &'b AccountInfo<'a>,
pub master_edition_account: &'b AccountInfo<'a>,
pub print_edition_account: &'b AccountInfo<'a>,
pub edition_marker_account: &'b AccountInfo<'a>,
pub spl_token_program: &'b AccountInfo<'a>,
}
Expand description
burn_edition_nft
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
metadata: &'b AccountInfo<'a>
Metadata (pda of [‘metadata’, program id, mint id])
owner: &'b AccountInfo<'a>
NFT owner
print_edition_mint: &'b AccountInfo<'a>
Mint of the print edition NFT
master_edition_mint: &'b AccountInfo<'a>
Mint of the original/master NFT
print_edition_token_account: &'b AccountInfo<'a>
Token account the print edition NFT is in
master_edition_token_account: &'b AccountInfo<'a>
Token account the Master Edition NFT is in
master_edition_account: &'b AccountInfo<'a>
MasterEdition2 of the original NFT
print_edition_account: &'b AccountInfo<'a>
Print Edition account of the NFT
edition_marker_account: &'b AccountInfo<'a>
Edition Marker PDA of the NFT
spl_token_program: &'b AccountInfo<'a>
SPL Token Program
Implementations§
source§impl<'a, 'b> BurnEditionNftCpi<'a, 'b>
impl<'a, 'b> BurnEditionNftCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: BurnEditionNftCpiAccounts<'a, 'b> ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for BurnEditionNftCpi<'a, 'b>
impl<'a, 'b> !Send for BurnEditionNftCpi<'a, 'b>
impl<'a, 'b> !Sync for BurnEditionNftCpi<'a, 'b>
impl<'a, 'b> Unpin for BurnEditionNftCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for BurnEditionNftCpi<'a, 'b>
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