UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

13 lines (12 loc) 841 B
import { web3 } from '@project-serum/anchor'; import { NodeWallet } from './classes/nodewallet'; import { BulkNft, BulkNftRaw } from './types'; export declare const createFakeWallet: () => NodeWallet; export declare const findAssociatedTokenAddress: (walletAddress: web3.PublicKey, tokenMintAddress: web3.PublicKey) => Promise<web3.PublicKey>; export declare const getTokenBalance: (pubkey: web3.PublicKey, connection: web3.Connection) => Promise<number>; export declare const createAssociatedTokenAccountInstruction: (associatedTokenAddress: web3.PublicKey, payer: web3.PublicKey, walletAddress: web3.PublicKey, splTokenMintAddress: web3.PublicKey) => web3.TransactionInstruction[]; export declare const getSuggestedLoans: (items: BulkNftRaw[], minValue: number) => { best: BulkNft[]; safest: BulkNft[]; cheapest: BulkNft[]; };