pub struct CreateMasterEditionV3CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for CreateMasterEditionV3
via CPI.
Accounts:
[writable]
edition[writable]
mint[signer]
update_authority[signer]
mint_authority[writable, signer]
payer[writable]
metadata[]
token_program[]
system_program[optional]
rent
Implementations§
source§impl<'a, 'b> CreateMasterEditionV3CpiBuilder<'a, 'b>
impl<'a, 'b> CreateMasterEditionV3CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
pub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
Unallocated edition V2 account with address as pda of [‘metadata’, program id, mint, ‘edition’]
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Metadata mint
Update authority
Mint authority on the metadata’s mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
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 metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
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 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
sourcepub fn max_supply(&mut self, max_supply: u64) -> &mut Self
pub fn max_supply(&mut self, max_supply: u64) -> &mut Self
[optional argument]
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 CreateMasterEditionV3CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for CreateMasterEditionV3CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for CreateMasterEditionV3CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for CreateMasterEditionV3CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateMasterEditionV3CpiBuilder<'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