kamino-sdk-beta
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
26 lines • 791 B
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface SwapArgs {
amountIn: BN;
minAmountOut: BN;
}
export interface SwapAccounts {
lbPair: PublicKey;
binArrayBitmapExtension: PublicKey;
reserveX: PublicKey;
reserveY: PublicKey;
userTokenIn: PublicKey;
userTokenOut: PublicKey;
tokenXMint: PublicKey;
tokenYMint: PublicKey;
oracle: PublicKey;
hostFeeIn: PublicKey;
user: PublicKey;
tokenXProgram: PublicKey;
tokenYProgram: PublicKey;
eventAuthority: PublicKey;
program: PublicKey;
}
export declare const layout: any;
export declare function swap(args: SwapArgs, accounts: SwapAccounts, programId?: PublicKey): TransactionInstruction;
//# sourceMappingURL=swap.d.ts.map