UNPKG

@authereum/zos

Version:

Command-line interface for the ZeppelinOS smart contract platform

24 lines (23 loc) 1.19 kB
import { ResolverEngine } from '@resolver-engine/core'; interface ImportFile { url: string; source: string; provider: string; } /** * Starts with roots and traverses the whole depedency tree of imports, returning an array of sources * @param roots * @param workingDir What's the starting working dir for resolving relative imports in roots * @param resolver */ export declare function gatherSources(roots: string[], workingDir: string, resolver: ResolverEngine<ImportFile>): Promise<ImportFile[]>; /** * This function gathers sources and **REWRITES IMPORTS** inside the source files into resolved, absolute paths instead of using shortcut forms * Because the remapping api in solc is not compatible with multiple existing projects and frameworks, changing relative paths to absolute paths * makes us avoid any need for finding imports after starting the solc compilation * @param roots * @param workingDir What's the starting working dir for resolving relative imports in roots * @param resolver */ export declare function gatherSourcesAndCanonizeImports(roots: string[], workingDir: string, resolver: ResolverEngine<ImportFile>): Promise<ImportFile[]>; export {};