UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

43 lines 1.84 kB
import { PublicKey } from '@solana/web3.js'; import * as anchor from '@coral-xyz/anchor'; import { KaminoReserve } from '../classes'; import Decimal from 'decimal.js'; export declare const getFlashLoanInstructions: (args: { borrowIxIndex: number; walletPublicKey: PublicKey; lendingMarketAuthority: PublicKey; lendingMarketAddress: PublicKey; reserve: KaminoReserve; amountLamports: Decimal; destinationAta: PublicKey; referrerAccount: PublicKey; referrerTokenState: PublicKey; programId: PublicKey; }) => { flashBorrowIx: anchor.web3.TransactionInstruction; flashRepayIx: anchor.web3.TransactionInstruction; }; export declare const getBorrowFlashLoanInstruction: ({ walletPublicKey, lendingMarketAuthority, lendingMarketAddress, reserve, amountLamports, destinationAta, referrerAccount, referrerTokenState, programId, }: { walletPublicKey: PublicKey; lendingMarketAuthority: PublicKey; lendingMarketAddress: PublicKey; reserve: KaminoReserve; amountLamports: Decimal; destinationAta: PublicKey; referrerAccount: PublicKey; referrerTokenState: PublicKey; programId: PublicKey; }) => anchor.web3.TransactionInstruction; export declare const getRepayFlashLoanInstruction: ({ borrowIxIndex, walletPublicKey, lendingMarketAuthority, lendingMarketAddress, reserve, amountLamports, userSourceLiquidity, referrerAccount, referrerTokenState, programId, }: { borrowIxIndex: number; walletPublicKey: PublicKey; lendingMarketAuthority: PublicKey; lendingMarketAddress: PublicKey; reserve: KaminoReserve; amountLamports: Decimal; userSourceLiquidity: PublicKey; referrerAccount: PublicKey; referrerTokenState: PublicKey; programId: PublicKey; }) => anchor.web3.TransactionInstruction; //# sourceMappingURL=instructions.d.ts.map