use solana_program::instruction::{AccountMeta, Instruction};
use solana_program::pubkey::Pubkey;
use crate::program::FARMING_MINT_WRAPPER_PROGRAM_ID;
use crate::utils::sighash;
pub fn new_transfer_mint(
mint_wrapper: Pubkey,
authority: Pubkey,
token_mint: Pubkey,
payer: Pubkey,
) -> Instruction {
let distor = sighash::sighash("global", "transfer_mint").to_vec();
Instruction {
program_id: FARMING_MINT_WRAPPER_PROGRAM_ID,
accounts: vec![
AccountMeta::new(mint_wrapper, false),
AccountMeta::new_readonly(payer, true),
AccountMeta::new_readonly(authority, false),
AccountMeta::new(token_mint, false),
AccountMeta::new_readonly(spl_token::id(), false),
],
data: distor,
}
}