import { createWrapperRemoveOfferInstruction } from "@exponent-labs/exponent-sdk/client/orderbook";
import { PublicKey, SystemProgram } from "@solana/web3.js";
const ix = createWrapperRemoveOfferInstruction(
{
trader: wallet.publicKey,
orderbook: orderbookAddress,
vault: vaultAddress,
cpiAccountOrderbook: cpiAccountsOrderbook,
tokenEscrowYt: orderbookEscrowYt,
tokenEscrowSy: orderbookEscrowSy,
tokenEscrowPt: orderbookEscrowPt,
tokenSyTrader: userSyTokenAccount,
tokenYtTrader: userYtTokenAccount,
tokenPtTrader: userPtTokenAccount,
systemProgram: SystemProgram.programId,
syProgram: syProgramId,
tokenProgram: TOKEN_PROGRAM_ID,
exponentCore: EXPONENT_CORE_PROGRAM_ID,
addressLookupTable: vaultLookupTable,
eventAuthority: eventAuthorityPda,
program: EXPONENT_ORDERBOOK_PROGRAM_ID,
},
{
offerIdx: 42,
redeemSyAccountsUntil: 0,
}
);