import { Program } from "@coral-xyz/anchor"; import { TransactionInstruction } from "@solana/web3.js"; import { StakingSpl } from "../artifacts/staking_spl"; export type UpdateFeeParams = { inputs: { newFee: number; }; }; export async function updateFee( program: Program, params: UpdateFeeParams, ): Promise { const { inputs } = params; const ix = await program.methods .updateFee( inputs.newFee, ) .instruction(); return ix; }