Struct mpl_token_metadata::state::MasterEditionV1
source · [−]#[repr(C)]pub struct MasterEditionV1 {
pub key: Key,
pub supply: u64,
pub max_supply: Option<u64>,
pub printing_mint: Pubkey,
pub one_time_printing_authorization_mint: Pubkey,
}
Fields
key: Key
supply: u64
max_supply: Option<u64>
printing_mint: Pubkey
Can be used to mint tokens that give one-time permission to mint a single limited edition.
If you don’t know how many printing tokens you are going to need, but you do know you are going to need some amount in the future, you can use a token from this mint. Coming back to token metadata with one of these tokens allows you to mint (one time) any number of printing tokens you want. This is used for instance by Auction Manager with participation NFTs, where we dont know how many people will bid and need participation printing tokens to redeem, so we give it ONE of these tokens to use after the auction is over, because when the auction begins we just dont know how many printing tokens we will need, but at the end we will. At the end it then burns this token with token-metadata to get the printing tokens it needs to give to bidders. Each bidder then redeems a printing token to get their limited editions.
Trait Implementations
sourceimpl BorshDeserialize for MasterEditionV1where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for MasterEditionV1where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
sourceimpl BorshSerialize for MasterEditionV1where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for MasterEditionV1where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
sourceimpl Clone for MasterEditionV1
impl Clone for MasterEditionV1
sourcefn clone(&self) -> MasterEditionV1
fn clone(&self) -> MasterEditionV1
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more