UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

18 lines (17 loc) 625 B
/// <reference types="bn.js" /> import anchor from '@project-serum/anchor'; import { Keypair, PublicKey, Transaction } from '@solana/web3.js'; interface IParams { programId: PublicKey; provider: anchor.Provider; user: PublicKey; nftMint: PublicKey; proposedNftPrice: number | anchor.BN; isPriceBased: boolean; sendTxn: (transaction: Transaction, signers: Keypair[]) => Promise<void>; } interface IReturn { loanPubkey: any; } declare const proposeLoan: ({ proposedNftPrice, programId, provider, user, nftMint, isPriceBased, sendTxn, }: IParams) => Promise<IReturn>; export default proposeLoan;