/// import { Margin } from "../models/Margin"; import { QuoteValue } from "../models/QuoteValue"; import { WalletId } from "../models/WalletId"; import { SlotInfo } from "./SlotInfo"; import * as BufferLayout from "@solana/buffer-layout"; import { ReserveId } from "../models/ReserveId"; import { Lamport } from "../models/basic"; import { ExchangeRate } from "../models/ExchangeRate"; import { PublicKey } from "@solana/web3.js"; export declare const ObligationLayout: BufferLayout.Structure; export declare const ObligationCollateralLayout: BufferLayout.Structure; export declare const ObligationLiquidityLayout: BufferLayout.Structure; export interface ProtoObligation { version: number; lastUpdate: SlotInfo; lendingMarket: PublicKey; owner: WalletId; depositedValue: QuoteValue; borrowedValue: Margin; allowedBorrowValue: Margin; unhealthyBorrowValue: Margin; depositsLen: number; borrowsLen: number; dataFlat: Buffer; } export interface PortProfileData { version: number; lastUpdate: SlotInfo; lendingMarket: PublicKey; owner: PublicKey; deposits: PortProfileCollateralData[]; borrows: PortProfileLoanData[]; depositedValue: QuoteValue; borrowedValue: Margin; allowedBorrowValue: Margin; unhealthyBorrowValue: Margin; } export interface PortProfileCollateralData { depositReserve: ReserveId; depositedAmount: Lamport; marketValue: QuoteValue; } export interface PortProfileLoanData { borrowReserve: ReserveId; cumulativeBorrowRateWads: ExchangeRate; borrowedAmountWads: Lamport; marketValue: QuoteValue; } export declare const PORT_PROFILE_DATA_SIZE: number; //# sourceMappingURL=PortProfileData.d.ts.map