mod budget_program; use crate::budget_program::process_instruction; use log::*; use solana_sdk::account::KeyedAccount; use solana_sdk::native_program::ProgramError; use solana_sdk::pubkey::Pubkey; use solana_sdk::solana_entrypoint; solana_entrypoint!(entrypoint); fn entrypoint( program_id: &Pubkey, keyed_accounts: &mut [KeyedAccount], data: &[u8], _tick_height: u64, ) -> Result<(), ProgramError> { solana_logger::setup(); trace!("process_instruction: {:?}", data); trace!("keyed_accounts: {:?}", keyed_accounts); process_instruction(program_id, keyed_accounts, data).map_err(|_| ProgramError::GenericError) }