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§
source§impl BorshDeserialize for MasterEditionV1where
Key: BorshDeserialize,
u64: BorshDeserialize,
Option<u64>: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for MasterEditionV1where Key: BorshDeserialize, u64: BorshDeserialize, Option<u64>: BorshDeserialize, Pubkey: BorshDeserialize,
source§impl BorshSerialize for MasterEditionV1where
Key: BorshSerialize,
u64: BorshSerialize,
Option<u64>: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for MasterEditionV1where Key: BorshSerialize, u64: BorshSerialize, Option<u64>: BorshSerialize, Pubkey: BorshSerialize,
source§impl Clone for MasterEditionV1
impl Clone for MasterEditionV1
source§fn clone(&self) -> MasterEditionV1
fn clone(&self) -> MasterEditionV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MasterEditionV1
impl Debug for MasterEditionV1
source§impl MasterEdition for MasterEditionV1
impl MasterEdition for MasterEditionV1
source§impl PartialEq<MasterEditionV1> for MasterEditionV1
impl PartialEq<MasterEditionV1> for MasterEditionV1
source§fn eq(&self, other: &MasterEditionV1) -> bool
fn eq(&self, other: &MasterEditionV1) -> bool
self
and other
values to be equal, and is used
by ==
.