UNPKG

@frakters/nft-lending-v2

Version:

Client library for interacting with nft lenging solana program

43 lines (42 loc) 2.04 kB
import { Connection, PublicKey } from '@solana/web3.js'; import { CollectionInfoView, DepositView, LiquidationLotView, LoanView, LotTicketView, NftAttemptView, PriceBasedLiquidityPoolView, TimeBasedLiquidityPoolView } from './../index'; export declare const fetchAndParseLotTicket: ({ lotTicketPubkey, programId, connection, }: { lotTicketPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<LotTicketView>; export declare const fetchAndParseNftAttempts: ({ nftAttemptsPubkey, programId, connection, }: { nftAttemptsPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<NftAttemptView>; export declare const fetchAndParseLiquidationLot: ({ liquidationLotPubkey, programId, connection, }: { liquidationLotPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<LiquidationLotView>; export declare const fetchAndParseDeposit: ({ depositPubkey, programId, connection, }: { depositPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<DepositView>; export declare const fetchAndParseLoan: ({ loanPubkey, programId, connection, }: { loanPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<LoanView>; export declare const fetchAndParseTimeBasedLiquidityPool: ({ timeBasedLiquidityPoolPubkey, programId, connection, }: { timeBasedLiquidityPoolPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<TimeBasedLiquidityPoolView>; export declare const fetchAndParsePriceBasedLiquidityPool: ({ priceBasedLiquidityPoolPubkey, programId, connection, }: { priceBasedLiquidityPoolPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<PriceBasedLiquidityPoolView>; export declare const fetchAndParseCollectionInfo: ({ collectionInfoPubkey, programId, connection, }: { collectionInfoPubkey: PublicKey; programId: PublicKey; connection: Connection; }) => Promise<CollectionInfoView>;