use crate::*; use solana_program::program_error::ProgramError; use solana_program::pubkey::Pubkey; pub use solana_program::system_program::ID; #[derive(Clone)] pub struct System; impl anchor_lang::AccountDeserialize for System { fn try_deserialize(buf: &mut &[u8]) -> Result { System::try_deserialize_unchecked(buf) } fn try_deserialize_unchecked(_buf: &mut &[u8]) -> Result { Ok(System) } } impl anchor_lang::Id for System { fn id() -> Pubkey { ID } }