@bombearn/sdk
Version:
Interaction framework for the yearn protocol
14 lines (13 loc) • 415 B
TypeScript
import { ChainId } from "./chain";
import { Context } from "./context";
export declare class CachedFetcher<T> {
expiryDate?: Date;
cachedValue?: T;
path: string;
ctx: Context;
chainId: ChainId;
constructor(path: string, ctx: Context, chainId: ChainId);
fetch(queryParameters?: string): Promise<T | undefined>;
private fetchWithTimeout;
private get currentValue();
}