@drift-labs/sdk
Version:
SDK for Drift Protocol
16 lines (15 loc) • 537 B
TypeScript
import type { AccountMeta, PublicKey, TransactionInstruction } from '@solana/web3.js';
import type { DriftProgram } from '../../config';
export declare function buildLiquidatePerpInstruction(args: {
program: DriftProgram;
marketIndex: number;
maxBaseAssetAmount: any;
limitPrice: any | null;
state: PublicKey;
authority: PublicKey;
user: PublicKey;
userStats: PublicKey;
liquidator: PublicKey;
liquidatorStats: PublicKey;
remainingAccounts: AccountMeta[];
}): Promise<TransactionInstruction>;