@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
14 lines (13 loc) • 700 B
TypeScript
import { web3 } from '@project-serum/anchor';
import { CollectionInfoView, DepositView, LoanView, PriceBasedLiquidityPoolView, TimeBasedLiquidityPoolView, LendingStakeView, LiquidationLotView } from '../../types';
declare type GetAllProgramAccounts = (programId: web3.PublicKey, connection: web3.Connection) => Promise<{
collectionInfos: CollectionInfoView[];
deposits: DepositView[];
timeBasedLiquidityPools: TimeBasedLiquidityPoolView[];
priceBasedLiquidityPools: PriceBasedLiquidityPoolView[];
loans: LoanView[];
lendingStakes: LendingStakeView[];
liquidationLots: LiquidationLotView[];
}>;
export declare const getAllProgramAccounts: GetAllProgramAccounts;
export {};