NT_anchor_lang/
system_program.rs1use crate::*;
2use solana_program::program_error::ProgramError;
3use solana_program::pubkey::Pubkey;
4
5pub use solana_program::system_program::ID;
6
7#[derive(Debug, Clone)]
8pub struct System;
9
10impl anchor_lang::AccountDeserialize for System {
11 fn try_deserialize(buf: &mut &[u8]) -> Result<Self, ProgramError> {
12 System::try_deserialize_unchecked(buf)
13 }
14
15 fn try_deserialize_unchecked(_buf: &mut &[u8]) -> Result<Self, ProgramError> {
16 Ok(System)
17 }
18}
19
20impl anchor_lang::Id for System {
21 fn id() -> Pubkey {
22 ID
23 }
24}