@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
16 lines (15 loc) • 697 B
TypeScript
/// <reference types="bn.js" />
import * as anchor from '@project-serum/anchor';
export { AllAccounts, CollectionInfoView, LiquidityPoolView, DepositView, LoanView, } from './../contract_model/accounts';
import { Keypair, PublicKey, Transaction } from '@solana/web3.js';
export declare function proposeLoan({ proposedNftPrice, programId, provider, user, nftMint, isPriceBased, sendTxn, }: {
programId: PublicKey;
provider: anchor.Provider;
user: PublicKey;
nftMint: PublicKey;
proposedNftPrice: number | anchor.BN;
isPriceBased: boolean;
sendTxn: (transaction: Transaction, signers: Keypair[]) => Promise<void>;
}): Promise<{
loanPubkey: anchor.web3.PublicKey;
}>;