pub struct DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenBuilder { /* private fields */ }
Expand description

Instruction builder for DeprecatedMintNewEditionFromMasterEditionViaPrintingToken.

Accounts:

  1. [writable] metadata
  2. [writable] edition
  3. [writable] master_edition
  4. [writable] mint
  5. [signer] mint_authority
  6. [writable] printing_mint
  7. [writable] master_token_account
  8. [writable] edition_marker
  9. [signer] burn_authority
  10. [signer] payer
  11. [] master_update_authority
  12. [] master_metadata
  13. [optional] token_program (default to TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)
  14. [optional] system_program (default to 11111111111111111111111111111111)
  15. [optional] rent (default to SysvarRent111111111111111111111111111111111)
  16. [writable, optional] reservation_list

Implementations§

source§

impl DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenBuilder

source

pub fn new() -> Self

source

pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self

New Metadata key (pda of [‘metadata’, program id, mint id])

source

pub fn edition(&mut self, edition: Pubkey) -> &mut Self

New Edition V1 (pda of [‘metadata’, program id, mint id, ‘edition’])

source

pub fn master_edition(&mut self, master_edition: Pubkey) -> &mut Self

Master Record Edition V1 (pda of [‘metadata’, program id, master metadata mint id, ‘edition’])

source

pub fn mint(&mut self, mint: Pubkey) -> &mut Self

Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

source

pub fn mint_authority(&mut self, mint_authority: Pubkey) -> &mut Self

Mint authority of new mint

source

pub fn printing_mint(&mut self, printing_mint: Pubkey) -> &mut Self

Printing Mint of master record edition

source

pub fn master_token_account( &mut self, master_token_account: Pubkey ) -> &mut Self

Token account containing Printing mint token to be transferred

source

pub fn edition_marker(&mut self, edition_marker: Pubkey) -> &mut Self

Edition pda to mark creation - will be checked for pre-existence. (pda of [‘metadata’, program id, master mint id, edition_number])

source

pub fn burn_authority(&mut self, burn_authority: Pubkey) -> &mut Self

Burn authority for this token

source

pub fn payer(&mut self, payer: Pubkey) -> &mut Self

payer

source

pub fn master_update_authority( &mut self, master_update_authority: Pubkey ) -> &mut Self

update authority info for new metadata account

source

pub fn master_metadata(&mut self, master_metadata: Pubkey) -> &mut Self

Master record metadata account

source

pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self

[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'] Token program

source

pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self

[optional account, default to '11111111111111111111111111111111'] System program

source

pub fn rent(&mut self, rent: Pubkey) -> &mut Self

[optional account, default to 'SysvarRent111111111111111111111111111111111'] Rent info

source

pub fn reservation_list( &mut self, reservation_list: Option<Pubkey> ) -> &mut Self

[optional account] Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.

source

pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self

Add an aditional account to the instruction.

source

pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self

Add additional accounts to the instruction.

source

pub fn instruction(&self) -> Instruction

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> AbiExample for T

§

default fn example() -> T

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V