UNPKG

@truffle/compile-solidity

Version:
32 lines (31 loc) 1.35 kB
import "../../polyfill"; import { Cache } from "../Cache"; import { StrategyOptions } from "../types"; type SolidityCompilersList = { builds: object[]; latestRelease: string; releases: object; }; export declare class VersionRange { config: StrategyOptions; cache: Cache; constructor(options: StrategyOptions); load(versionRange: string): Promise<any>; list(index?: number): any; compilerFromString(code: string): any; findNewestValidVersion(version: string, allVersions: SolidityCompilersList): string | null; getCachedSolcByFileName(fileName: string): Promise<any>; getCachedSolcByVersionRange(version: string): Promise<any>; getCachedSolcFileName(commit: string): Promise<any>; getMostRecentVersionOfCompiler(versions: string[]): string; getSatisfyingVersionFromCache(versionRange: string): Promise<any>; getAndCacheSolcByUrl(fileName: string, index: number): Promise<any>; getSolcFromCacheOrUrl(versionConstraint: string, index?: number): any; getSolcVersionsForSource(urlRoot: string, attemptNumber: number): Promise<SolidityCompilersList>; getSolcVersionFileName(version: string, allVersions: SolidityCompilersList): string | null; versionIsCached(version: string): Promise<any>; } export declare class NoUrlError extends Error { constructor(); } export {};