pub struct ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for ConvertMasterEditionV1ToV2
via CPI.
Accounts:
[writable]
master_edition[writable]
one_time_auth[writable]
printing_mint
Implementations§
source§impl<'a, 'b> ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
impl<'a, 'b> ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
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 V1 (pda of [‘metadata’, program id, master metadata mint id, ‘edition’])
sourcepub fn one_time_auth(&mut self, one_time_auth: &'b AccountInfo<'a>) -> &mut Self
pub fn one_time_auth(&mut self, one_time_auth: &'b AccountInfo<'a>) -> &mut Self
One time authorization mint
sourcepub fn printing_mint(&mut self, printing_mint: &'b AccountInfo<'a>) -> &mut Self
pub fn printing_mint(&mut self, printing_mint: &'b AccountInfo<'a>) -> &mut Self
Printing mint
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 ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for ConvertMasterEditionV1ToV2CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for ConvertMasterEditionV1ToV2CpiBuilder<'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