Skip to main content

mpl_token_metadata/state/
creator.rs

1use super::*;
2
3pub const MAX_CREATOR_LIMIT: usize = 5;
4
5pub const MAX_CREATOR_LEN: usize = 32 + 1 + 1;
6
7#[repr(C)]
8#[cfg_attr(feature = "serde-feature", derive(Serialize, Deserialize))]
9#[derive(BorshSerialize, BorshDeserialize, PartialEq, Debug, Clone, Eq, Hash)]
10pub struct Creator {
11    #[cfg_attr(feature = "serde-feature", serde(with = "As::<DisplayFromStr>"))]
12    pub address: Pubkey,
13    pub verified: bool,
14    // In percentages, NOT basis points ;) Watch out!
15    pub share: u8,
16}