pub struct PrintV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for PrintV1
via CPI.
Accounts:
[writable]
edition_metadata[writable]
edition[writable, signer]
edition_mint[]
edition_token_account_owner[writable]
edition_token_account[signer]
edition_mint_authority[writable, optional]
edition_token_record[writable]
master_edition[writable]
edition_marker_pda[writable, signer]
payer[signer]
master_token_account_owner[]
master_token_account[]
master_metadata[]
update_authority[]
spl_token_program[]
spl_ata_program[]
sysvar_instructions[]
system_program
Implementations§
source§impl<'a, 'b> PrintV1CpiBuilder<'a, 'b>
impl<'a, 'b> PrintV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn edition_metadata(
&mut self,
edition_metadata: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_metadata( &mut self, edition_metadata: &'b AccountInfo<'a> ) -> &mut Self
New Metadata key (pda of [‘metadata’, program id, mint id])
sourcepub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
pub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
New Edition (pda of [‘metadata’, program id, mint id, ‘edition’])
sourcepub fn edition_mint(
&mut self,
edition_mint: &'b AccountInfo<'a>,
as_signer: bool
) -> &mut Self
pub fn edition_mint( &mut self, edition_mint: &'b AccountInfo<'a>, as_signer: bool ) -> &mut Self
Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
sourcepub fn edition_token_account_owner(
&mut self,
edition_token_account_owner: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_token_account_owner( &mut self, edition_token_account_owner: &'b AccountInfo<'a> ) -> &mut Self
Owner of the token account of new token
sourcepub fn edition_token_account(
&mut self,
edition_token_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_token_account( &mut self, edition_token_account: &'b AccountInfo<'a> ) -> &mut Self
Token account of new token
Mint authority of new mint
sourcepub fn edition_token_record(
&mut self,
edition_token_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn edition_token_record( &mut self, edition_token_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Token record account
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 edition_marker_pda(
&mut self,
edition_marker_pda: &'b AccountInfo<'a>
) -> &mut Self
pub fn edition_marker_pda( &mut self, edition_marker_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).
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
payer
sourcepub fn master_token_account_owner(
&mut self,
master_token_account_owner: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_token_account_owner( &mut self, master_token_account_owner: &'b AccountInfo<'a> ) -> &mut Self
owner of token account containing master token
sourcepub fn master_token_account(
&mut self,
master_token_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_token_account( &mut self, master_token_account: &'b AccountInfo<'a> ) -> &mut Self
token account containing token from master metadata mint
sourcepub fn master_metadata(
&mut self,
master_metadata: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_metadata( &mut self, master_metadata: &'b AccountInfo<'a> ) -> &mut Self
Master record metadata account
The update authority of the master edition.
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
Token program
sourcepub fn spl_ata_program(
&mut self,
spl_ata_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn spl_ata_program( &mut self, spl_ata_program: &'b AccountInfo<'a> ) -> &mut Self
SPL Associated Token Account 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 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
pub fn edition_number(&mut self, edition_number: u64) -> &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.