pub struct BurnEditionNftCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for BurnEditionNft
via CPI.
Accounts:
[writable]
metadata[writable, signer]
owner[writable]
print_edition_mint[]
master_edition_mint[writable]
print_edition_token_account[]
master_edition_token_account[writable]
master_edition_account[writable]
print_edition_account[writable]
edition_marker_account[]
spl_token_program
Implementations§
source§impl<'a, 'b> BurnEditionNftCpiBuilder<'a, 'b>
impl<'a, 'b> BurnEditionNftCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Metadata (pda of [‘metadata’, program id, mint id])
sourcepub fn owner(&mut self, owner: &'b AccountInfo<'a>) -> &mut Self
pub fn owner(&mut self, owner: &'b AccountInfo<'a>) -> &mut Self
NFT owner
sourcepub fn print_edition_mint(
&mut self,
print_edition_mint: &'b AccountInfo<'a>
) -> &mut Self
pub fn print_edition_mint( &mut self, print_edition_mint: &'b AccountInfo<'a> ) -> &mut Self
Mint of the print edition NFT
sourcepub fn master_edition_mint(
&mut self,
master_edition_mint: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_edition_mint( &mut self, master_edition_mint: &'b AccountInfo<'a> ) -> &mut Self
Mint of the original/master NFT
sourcepub fn print_edition_token_account(
&mut self,
print_edition_token_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn print_edition_token_account( &mut self, print_edition_token_account: &'b AccountInfo<'a> ) -> &mut Self
Token account the print edition NFT is in
sourcepub fn master_edition_token_account(
&mut self,
master_edition_token_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_edition_token_account( &mut self, master_edition_token_account: &'b AccountInfo<'a> ) -> &mut Self
Token account the Master Edition NFT is in
sourcepub fn master_edition_account(
&mut self,
master_edition_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_edition_account( &mut self, master_edition_account: &'b AccountInfo<'a> ) -> &mut Self
MasterEdition2 of the original NFT
sourcepub fn print_edition_account(
&mut self,
print_edition_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn print_edition_account( &mut self, print_edition_account: &'b AccountInfo<'a> ) -> &mut Self
Print Edition account of the NFT
sourcepub fn edition_marker_account(
&mut self,
edition_marker_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_marker_account( &mut self, edition_marker_account: &'b AccountInfo<'a> ) -> &mut Self
Edition Marker PDA of the NFT
sourcepub fn spl_token_program(
&mut self,
spl_token_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: &'b AccountInfo<'a> ) -> &mut Self
SPL Token Program
sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool ) -> &mut Self
Add an additional account to the instruction.
sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)]
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo
, a bool
indicating whether the account is writable or not,
and a bool
indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for BurnEditionNftCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for BurnEditionNftCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for BurnEditionNftCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for BurnEditionNftCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for BurnEditionNftCpiBuilder<'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