spl_noop/
lib.rs

1// Note that this is not functional, it is just a placeholder to create a 2.0.0 compatible SDK
2use solana_program::{
3    account_info::AccountInfo, declare_id, entrypoint::ProgramResult, instruction::Instruction,
4    pubkey::Pubkey,
5};
6
7declare_id!("noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV");
8
9#[cfg(not(feature = "no-entrypoint"))]
10solana_program::entrypoint!(noop);
11
12pub fn noop(
13    _program_id: &Pubkey,
14    _accounts: &[AccountInfo],
15    _instruction_data: &[u8],
16) -> ProgramResult {
17    Ok(())
18}
19
20pub fn instruction(data: Vec<u8>) -> Instruction {
21    Instruction {
22        program_id: crate::id(),
23        accounts: vec![],
24        data,
25    }
26}