import { GatewayBond } from "../types"; import { INetClient } from "../net-client"; import { IQueryClient } from "../query-client"; /** * There are serious limits in smart contract systems, but we need to keep track of * potentially thousands of nodes. GatewaysCache instances repeatedly make requests for * paged data about what gateways exist, and keep them locally in memory so that they're * available for querying. **/ export default class GatewaysCache { gateways: GatewayBond[]; client: INetClient | IQueryClient; perPage: number; constructor(client: INetClient | IQueryClient, perPage: number); refreshGateways(contractAddress: string): Promise; refreshValidatorAPIGateways(urls: string[]): Promise; }