mod escrow;
pub use escrow::*;
use num_enum::{IntoPrimitive, TryFromPrimitive};
use solana_program::pubkey::Pubkey;
use crate::consts::ESCROW;
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
pub enum AccountDiscriminator {
Escrow = 100,
}
pub fn escrow_pda(authority: Pubkey) -> (Pubkey, u8) {
Pubkey::find_program_address(&[ESCROW, authority.as_ref()], &crate::id())
}