Struct mpl_token_metadata::instructions::MintNewEditionFromMasterEditionViaVaultProxyCpiBuilder
source · pub struct MintNewEditionFromMasterEditionViaVaultProxyCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for MintNewEditionFromMasterEditionViaVaultProxy
via CPI.
Accounts:
[writable]
new_metadata[writable]
new_edition[writable]
master_edition[writable]
new_mint[writable]
edition_mark_pda[signer]
new_mint_authority[writable, signer]
payer[signer]
vault_authority[]
safety_deposit_store[]
safety_deposit_box[]
vault[]
new_metadata_update_authority[]
metadata[]
token_program[]
token_vault_program[]
system_program[optional]
rent
Implementations§
source§impl<'a, 'b> MintNewEditionFromMasterEditionViaVaultProxyCpiBuilder<'a, 'b>
impl<'a, 'b> MintNewEditionFromMasterEditionViaVaultProxyCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn new_metadata(&mut self, new_metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn new_metadata(&mut self, new_metadata: &'b AccountInfo<'a>) -> &mut Self
New Metadata key (pda of [‘metadata’, program id, mint id])
sourcepub fn new_edition(&mut self, new_edition: &'b AccountInfo<'a>) -> &mut Self
pub fn new_edition(&mut self, new_edition: &'b AccountInfo<'a>) -> &mut Self
New Edition (pda of [‘metadata’, program id, mint id, ‘edition’])
sourcepub fn master_edition(
&mut self,
master_edition: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_edition( &mut self, master_edition: &'b AccountInfo<'a> ) -> &mut Self
Master Record Edition V2 (pda of [‘metadata’, program id, master metadata mint id, ‘edition’]
sourcepub fn new_mint(&mut self, new_mint: &'b AccountInfo<'a>) -> &mut Self
pub fn new_mint(&mut self, new_mint: &'b AccountInfo<'a>) -> &mut Self
Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
sourcepub fn edition_mark_pda(
&mut self,
edition_mark_pda: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_mark_pda( &mut self, edition_mark_pda: &'b AccountInfo<'a> ) -> &mut Self
Edition pda to mark creation - will be checked for pre-existence. (pda of [‘metadata’, program id, master metadata mint id, ‘edition’, edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
Mint authority of new mint
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
payer
Vault authority
sourcepub fn safety_deposit_store(
&mut self,
safety_deposit_store: &'b AccountInfo<'a>
) -> &mut Self
pub fn safety_deposit_store( &mut self, safety_deposit_store: &'b AccountInfo<'a> ) -> &mut Self
Safety deposit token store account
sourcepub fn safety_deposit_box(
&mut self,
safety_deposit_box: &'b AccountInfo<'a>
) -> &mut Self
pub fn safety_deposit_box( &mut self, safety_deposit_box: &'b AccountInfo<'a> ) -> &mut Self
Safety deposit box
sourcepub fn vault(&mut self, vault: &'b AccountInfo<'a>) -> &mut Self
pub fn vault(&mut self, vault: &'b AccountInfo<'a>) -> &mut Self
Vault
Update authority info for new metadata
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Master record metadata account
sourcepub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
pub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
Token program
sourcepub fn token_vault_program(
&mut self,
token_vault_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn token_vault_program( &mut self, token_vault_program: &'b AccountInfo<'a> ) -> &mut Self
Token vault program
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 rent(&mut self, rent: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn rent(&mut self, rent: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Rent info
pub fn mint_new_edition_from_master_edition_via_token_args( &mut self, mint_new_edition_from_master_edition_via_token_args: MintNewEditionFromMasterEditionViaTokenArgs ) -> &mut Self
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.