@sentio/truffle-fetch-and-compile
Version:
Used to obtain external verified sources and compile them
16 lines (15 loc) • 648 B
TypeScript
import type { Recognizer, FailureType, FetchAndCompileResult } from "./types";
export declare class SingleRecognizer implements Recognizer {
private address;
private recognized;
private fetchedVia;
private compileResult;
private sourceInfo;
constructor(address: string);
getResult(): FetchAndCompileResult;
isAddressUnrecognized(address: string): boolean;
getAnUnrecognizedAddress(): string | undefined;
markUnrecognizable(address: string, reason?: FailureType, error?: Error): never;
markBadFetcher(_fetcherName: string): void;
addCompiledInfo(info: FetchAndCompileResult, address: string): void;
}