use {
crate::processor::Processor, solana_account_info::AccountInfo, solana_msg::msg,
solana_program_error::ProgramResult, solana_pubkey::Pubkey, solana_security_txt::security_txt,
spl_token_2022_interface::error::TokenError,
};
solana_program_entrypoint::entrypoint!(process_instruction);
fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> ProgramResult {
if let Err(error) = Processor::process(program_id, accounts, instruction_data) {
msg!(error.to_str::<TokenError>());
return Err(error);
}
Ok(())
}
security_txt! {
name: "SPL Token-2022",
project_url: "https://www.solana-program.com/docs/token-2022",
contacts: "link:https://github.com/solana-program/token-2022/security/advisories/new,mailto:security@anza.xyz,discord:https://solana.com/discord",
policy: "https://github.com/solana-program/token-2022/blob/master/SECURITY.md",
preferred_languages: "en",
source_code: "https://github.com/solana-program/token-2022/tree/master/program",
source_release: "token-2022-v7.0.0",
auditors: "https://github.com/anza-xyz/security-audits#token-2022"
}