mod.rs 403 B

123456789101112131415161718
  1. mod account_to_change;
  2. pub use account_to_change::*;
  3. use steel::*;
  4. use crate::consts::*;
  5. #[repr(u8)]
  6. #[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
  7. pub enum SteelAccount {
  8. AccountToChange = 0,
  9. }
  10. /// Fetch PDA of the account_to_change account.
  11. pub fn account_to_change_pda() -> (Pubkey, u8) {
  12. Pubkey::find_program_address(&[ACCOUNT_TO_CHANGE], &crate::id())
  13. }