@nomiclabs/buidler > Resolver

Class: Resolver

Hierarchy

Resolver

Index

Constructors

Methods


Constructors

constructor

new Resolver(projectRoot: string): Resolver

Defined in internal/solidity/resolver.ts:48

Parameters:

Name Type
projectRoot string

Returns: Resolver


Methods

_getLibraryName

_getLibraryName(globalName: string): string

Defined in internal/solidity/resolver.ts:223

Parameters:

Name Type
globalName string

Returns: string


_isRelativeImport

_isRelativeImport(imported: string): boolean

Defined in internal/solidity/resolver.ts:213

Parameters:

Name Type
imported string

Returns: boolean


_resolveFile

_resolveFile(globalName: string, absolutePath: string, libraryName?: undefined | string, libraryVersion?: undefined | string): Promise<ResolvedFile>

Defined in internal/solidity/resolver.ts:193

Parameters:

Name Type
globalName string
absolutePath string
Optional libraryName undefined | string
Optional libraryVersion undefined | string

Returns: Promise<ResolvedFile>


_resolveFromProjectRoot

_resolveFromProjectRoot(fileName: string): string

Defined in internal/solidity/resolver.ts:217

Parameters:

Name Type
fileName string

Returns: string


resolveImport

resolveImport(from: ResolvedFile, imported: string): Promise<ResolvedFile>

Defined in internal/solidity/resolver.ts:144

Parameters:

Name Type
from ResolvedFile
imported string

Returns: Promise<ResolvedFile>


resolveLibrarySourceFile

resolveLibrarySourceFile(globalName: string): Promise<ResolvedFile>

Defined in internal/solidity/resolver.ts:82

Parameters:

Name Type
globalName string

Returns: Promise<ResolvedFile>


resolveProjectSourceFile

resolveProjectSourceFile(pathToResolve: string): Promise<ResolvedFile>

Defined in internal/solidity/resolver.ts:54

Parameters:

Name Type
pathToResolve string

Returns: Promise<ResolvedFile>