Struct hpl_hive_control::state::project_state::Project
source · pub struct Project {
pub bump: u8,
pub authority: Pubkey,
pub key: Pubkey,
pub driver: Pubkey,
pub name: String,
pub mint_indexing: Indexing,
pub services: Vec<Service>,
pub collections: Vec<Pubkey>,
pub creators: Vec<Pubkey>,
pub profile_data_config: HashMap<String, ProfileDataType>,
pub merkle_trees: Vec<Pubkey>,
pub associated_programs: Vec<AssociatedProgram>,
}
Expand description
Project State Account This account represents the cenntralized state and confnigurations of an NFT project on the Honeycomb Protocol. PDA: [‘project’, key] Category: project_state
Fields§
§bump: u8
Bump value used for PDA.
Public key of the authority controlling this project.
key: Pubkey
Unique public key identifier for this project account.
driver: Pubkey
Public key of the driver wallet having partial authority of this project.
name: String
Name of the project.
mint_indexing: Indexing
Indexing information for the associated mints of the NFT Collection.
services: Vec<Service>
List of honeycomb services associated with this project.
collections: Vec<Pubkey>
List of nft collections (public keys) associated with this project.
creators: Vec<Pubkey>
List of public keys representing the nft creators involved in this project.
profile_data_config: HashMap<String, ProfileDataType>
Configuration for profile data stored as key-value pairs in a HashMap.
merkle_trees: Vec<Pubkey>
List of public keys representing the nft creators involved in this project.
associated_programs: Vec<AssociatedProgram>
Implementations§
source§impl Project
impl Project
pub fn validate_profile_data( &self, label: &String, profile_data: &ProfileData ) -> bool
Trait Implementations§
source§impl AccountDeserialize for Project
impl AccountDeserialize for Project
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Mint
account into a token
Account
.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
source§impl AccountSerialize for Project
impl AccountSerialize for Project
source§impl BorshDeserialize for Project
impl BorshDeserialize for Project
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Default for Project
impl Default for Project
Default implementation for the Project
struct.
It sets default values for each field when creating a new Project
instance.