pub struct Project {
pub bump: u8,
pub authority: Pubkey,
pub key: Pubkey,
pub driver: Pubkey,
pub name: String,
pub services: Vec<Service>,
pub associated_programs: Vec<AssociatedProgram>,
pub profile_data_config: ProfileDataConfig,
pub profile_trees: ControlledMerkleTrees,
pub badge_criteria: Option<Vec<BadgeCriteria>>,
pub subsidize_fees: bool,
}
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.
services: Vec<Service>
List of honeycomb services associated with this project.
associated_programs: Vec<AssociatedProgram>
List of programs that can interact with this project.
profile_data_config: ProfileDataConfig
Profile data configuration for this project.
profile_trees: ControlledMerkleTrees
Controlled Merkle Trees for profile data.
badge_criteria: Option<Vec<BadgeCriteria>>
List of badge criteria for this project.
subsidize_fees: bool
Subsidize Fees
Implementations§
Source§impl Project
Default implementation for the Project
struct.
It sets default values for each field when creating a new Project
instance.
impl Project
Default implementation for the Project
struct.
It sets default values for each field when creating a new Project
instance.
pub fn get_size(name: String) -> usize
pub fn get_or_insert_badge_criteria<'a>( &'a mut self, ) -> &'a mut Vec<BadgeCriteria>
Sourcepub fn set_defaults(&mut self)
pub fn set_defaults(&mut self)
Sets default values for each field of the Project
struct.
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
.