UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

18 lines (17 loc) 665 B
/// <reference types="bn.js" /> import anchor from '@project-serum/anchor'; import { PublicKey, Transaction } from '@solana/web3.js'; interface IParams { programId: PublicKey; provider: anchor.Provider; admin: PublicKey; loan: PublicKey; liquidityPool: PublicKey; collectionInfo: PublicKey; nftPrice: number | anchor.BN; discount: number | anchor.BN; user: PublicKey; sendTxn: (transaction: Transaction) => Promise<void>; } declare const approveLoanByAdmin: ({ programId, provider, admin, loan, liquidityPool, collectionInfo, nftPrice, discount, user, sendTxn, }: IParams) => Promise<any>; export default approveLoanByAdmin;