@nomiclabs/buidler > CompilerDownloader

Class: CompilerDownloader

Hierarchy

CompilerDownloader

Index

Constructors

Properties

Methods


Constructors

constructor

new CompilerDownloader(compilersDir: string, localSolcVersion: string, download?: downloadFile): CompilerDownloader

Defined in internal/solidity/compiler/downloader.ts:46

Parameters:

Name Type Default value
compilersDir string -
localSolcVersion string -
Default value download downloadFile downloadFile

Returns: CompilerDownloader


Properties

compilersDir

● compilersDir: string

Defined in internal/solidity/compiler/downloader.ts:49


download

● download: downloadFile

Defined in internal/solidity/compiler/downloader.ts:51


localSolcVersion

● localSolcVersion: string

Defined in internal/solidity/compiler/downloader.ts:50


Methods

compilersListExists

compilersListExists(): Promise<boolean>

Defined in internal/solidity/compiler/downloader.ts:109

Returns: Promise<boolean>


downloadCompiler

downloadCompiler(compilerBuild: CompilerBuild, downloadedFilePath: string): Promise<void>

Defined in internal/solidity/compiler/downloader.ts:127

Parameters:

Name Type
compilerBuild CompilerBuild
downloadedFilePath string

Returns: Promise<void>


downloadCompilersList

downloadCompilersList(): Promise<void>

Defined in internal/solidity/compiler/downloader.ts:113

Returns: Promise<void>


getCompilerBuild

getCompilerBuild(version: string): Promise<CompilerBuild>

Defined in internal/solidity/compiler/downloader.ts:74

Parameters:

Name Type
version string

Returns: Promise<CompilerBuild>


getCompilersList

getCompilersList(): Promise<CompilersList>

Defined in internal/solidity/compiler/downloader.ts:97

Returns: Promise<CompilersList>


getCompilersListPath

getCompilersListPath(): string

Defined in internal/solidity/compiler/downloader.ts:105

Returns: string


getDownloadedCompilerPath

getDownloadedCompilerPath(version: string): Promise<string>

Defined in internal/solidity/compiler/downloader.ts:58

Parameters:

Name Type
version string

Returns: Promise<string>


verifyCompiler

verifyCompiler(compilerBuild: CompilerBuild, downloadedFilePath: string): Promise<void>

Defined in internal/solidity/compiler/downloader.ts:149

Parameters:

Name Type
compilerBuild CompilerBuild
downloadedFilePath string

Returns: Promise<void>