2018-12-17 14:30:41 -08:00
|
|
|
use log::*;
|
2018-10-25 11:13:08 -07:00
|
|
|
use solana_sdk::account::KeyedAccount;
|
2019-03-23 20:12:27 -07:00
|
|
|
use solana_sdk::instruction::InstructionError;
|
2018-11-17 17:02:14 -08:00
|
|
|
use solana_sdk::pubkey::Pubkey;
|
2018-09-23 22:13:44 -07:00
|
|
|
|
2019-11-20 16:32:19 -08:00
|
|
|
solana_sdk::declare_program!(
|
|
|
|
"Noop111111111111111111111111111111111111111",
|
|
|
|
solana_noop_program,
|
|
|
|
process_instruction
|
|
|
|
);
|
|
|
|
|
|
|
|
fn process_instruction(
|
2018-11-17 17:02:14 -08:00
|
|
|
program_id: &Pubkey,
|
2020-01-22 17:54:06 -08:00
|
|
|
keyed_accounts: &[KeyedAccount],
|
2018-11-17 17:02:14 -08:00
|
|
|
data: &[u8],
|
2019-03-18 09:05:03 -07:00
|
|
|
) -> Result<(), InstructionError> {
|
2018-12-17 14:30:41 -08:00
|
|
|
solana_logger::setup();
|
2019-04-29 14:10:36 -07:00
|
|
|
trace!("noop: program_id: {:?}", program_id);
|
|
|
|
trace!("noop: keyed_accounts: {:#?}", keyed_accounts);
|
|
|
|
trace!("noop: data: {:?}", data);
|
2018-12-03 13:32:31 -08:00
|
|
|
Ok(())
|
2018-10-04 09:44:44 -07:00
|
|
|
}
|