@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
11 lines (10 loc) • 869 B
TypeScript
/// <reference types="node" />
import anchor from '@project-serum/anchor';
import { Connection, PublicKey } from '@solana/web3.js';
import { CollectionInfoView, DepositView, LiquidityPoolView, LoanView, NftLendingV2 } from './types';
export declare const returnAnchorProgram: (programId: PublicKey, provider: anchor.Provider) => anchor.Program<NftLendingV2>;
export declare const decodedCollectionInfo: (decodedCollection: any, address: PublicKey) => CollectionInfoView;
export declare const decodedLiquidityPool: (decodedLiquidityPool: any, address: PublicKey) => LiquidityPoolView;
export declare const decodedDeposit: (decodedDeposit: any, address: PublicKey) => DepositView;
export declare const decodedLoan: (decodedLoan: any, address: PublicKey) => LoanView;
export declare const decodeLoan: (buffer: Buffer, connection: Connection, programId: PublicKey) => any;