1use solana_program::{
2 account_info::AccountInfo, declare_id, entrypoint::ProgramResult, instruction::Instruction,
3 pubkey::Pubkey,
4};
5
6declare_id!("WRAPYChf58WFCnyjXKJHtrPgzKXgHp6MD9aVDqJBbGh");
7
8#[cfg(not(feature = "no-entrypoint"))]
9solana_program::entrypoint!(wrap);
10
11pub fn wrap(
12 _program_id: &Pubkey,
13 _accounts: &[AccountInfo],
14 _instruction_data: &[u8],
15) -> ProgramResult {
16 Ok(())
17}
18
19pub fn wrap_instruction(data: Vec<u8>) -> Instruction {
20 Instruction {
21 program_id: crate::id(),
22 accounts: vec![],
23 data,
24 }
25}