@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
30 lines (29 loc) • 1.13 kB
TypeScript
import { CollectionInfoView, DepositView, LiquidationLotView, LoanView, PriceBasedLiquidityPoolView, TimeBasedLiquidityPoolView } from '../types';
import { PublicKey, Connection, ParsedTransactionWithMeta } from '@solana/web3.js';
export interface AccountsChanged {
collectionInfos: CollectionInfoView[];
deposits: DepositView[];
timeBasedLiquidityPools: TimeBasedLiquidityPoolView[];
priceBasedLiquidityPools: PriceBasedLiquidityPoolView[];
loans: LoanView[];
liquidationLots: LiquidationLotView[];
}
export interface TransactionAccountParserParams {
transaction: ParsedTransactionWithMeta;
programId: PublicKey;
connection: Connection;
}
export declare const LOAN_STATE_PRIORITY: {
proposed: number;
rejected: number;
activated: number;
paidBack: number;
liquidated: number;
paidBackWithGrace: number;
};
export declare const harvestCount: ({ programId, timeoutOfCalls, fromThisSignature, connection, }: {
programId: PublicKey;
timeoutOfCalls?: number | undefined;
fromThisSignature?: string | undefined;
connection: Connection;
}) => Promise<never>;