import { Contract, Provider } from 'ethers'; import { OpenInterest, Utilization, Skew } from '../types'; import { PairsCache } from './pairs_cache'; /** * RPC module for retrieving category-level parameters */ export declare class CategoryParametersRPC { private provider; private pairStorageContract; private pairsCache; constructor(provider: Provider, pairStorageContract: Contract, pairsCache: PairsCache); /** * Get open interest limits per category * Note: Group OI limits are calculated from pair backend data * @returns Map of group index to OI limits */ getOILimits(): Promise>; /** * Get current open interest per category * Note: Calculated by summing pair OIs in each group * @returns Map of group index to OI */ getOI(): Promise>; /** * Get utilization per category * @returns Map of group index to utilization */ getUtilization(): Promise>; /** * Get category skew (long / total) * @returns Map of group index to skew */ getCategorySkew(): Promise>; }