Struct mpl_token_metadata::instructions::BurnV1CpiBuilder
source · pub struct BurnV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for BurnV1
via CPI.
§Accounts:
[writable, signer]
authority[writable, optional]
collection_metadata[writable]
metadata[writable, optional]
edition[writable]
mint[writable]
token[writable, optional]
master_edition[optional]
master_edition_mint[optional]
master_edition_token[writable, optional]
edition_marker[writable, optional]
token_record[]
system_program[]
sysvar_instructions[]
spl_token_program
Implementations§
source§impl<'a, 'b> BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> BurnV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Asset owner or Utility delegate
sourcepub fn collection_metadata(
&mut self,
collection_metadata: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Metadata of the Collection
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 edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Edition of the asset
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint of token asset
sourcepub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
pub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
Token account to close
sourcepub fn master_edition(
&mut self,
master_edition: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition( &mut self, master_edition: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition account
sourcepub fn master_edition_mint(
&mut self,
master_edition_mint: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition_mint( &mut self, master_edition_mint: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition mint of the asset
sourcepub fn master_edition_token(
&mut self,
master_edition_token: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition_token( &mut self, master_edition_token: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition token account
sourcepub fn edition_marker(
&mut self,
edition_marker: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn edition_marker( &mut self, edition_marker: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Edition marker account
sourcepub fn token_record(
&mut self,
token_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn token_record( &mut self, token_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Token record account
sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a> ) -> &mut Self
System program
sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: &'b AccountInfo<'a>
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: &'b AccountInfo<'a> ) -> &mut Self
Instructions sysvar account
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.