mod.rs 491 B

12345678910111213141516171819
  1. mod accounts;
  2. use crate::consts::*;
  3. pub use accounts::*;
  4. use steel::*;
  5. /// This enum represents the discriminator for the
  6. /// accounts this program can interact with
  7. #[repr(u8)]
  8. #[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
  9. pub enum PdaRentPayerAccountDiscriminator {
  10. RentVault = 0,
  11. NewAccount = 1,
  12. }
  13. /// Fetch PDA of the rent_vault account.
  14. pub fn rent_vault_pda() -> (Pubkey, u8) {
  15. Pubkey::find_program_address(&[RENT_VAULT], &crate::id())
  16. }