use pinocchio::pubkey::{find_program_address, Pubkey};
pub fn get_whitelist_entry_address_and_bump_seed(
deploy_authority_address: &Pubkey,
) -> (Pubkey, u8) {
get_whitelist_entry_address_and_bump_seed_internal(
&crate::program::id(),
&crate::account::id(),
deploy_authority_address,
)
}
pub fn get_whitelist_entry_address(deploy_authority_address: &Pubkey) -> Pubkey {
get_whitelist_entry_address_and_bump_seed_internal(
&crate::program::id(),
&crate::account::id(),
deploy_authority_address,
)
.0
}
#[doc(hidden)]
fn get_whitelist_entry_address_and_bump_seed_internal(
program_id: &Pubkey,
whitelist_address: &Pubkey,
deploy_authority_address: &Pubkey,
) -> (Pubkey, u8) {
find_program_address(&[whitelist_address, deploy_authority_address], program_id)
}