@ethereum-sourcify/compilers
Version:
Wrapper around multiple compilers to download the right version and invoke the compilation with a common interface.
14 lines • 851 B
TypeScript
import { VyperJsonInput, VyperOutput } from '@ethereum-sourcify/compilers-types';
export declare function findVyperPlatform(): string | false;
/**
* Searches for a vyper compiler: first for a local executable version, then from HOST_VYPER_REPO
* Once the compiler is retrieved, it is used, and the stringified vyper output is returned.
*
* @param version the version of vyper to be used for compilation
* @param input a JSON object of the standard-json format compatible with vyper
* @param log the logger
* @returns stringified vyper output
*/
export declare function useVyperCompiler(vyperRepoPath: string, version: string, vyperJsonInput: VyperJsonInput): Promise<VyperOutput>;
export declare function getVyperExecutable(vyperRepoPath: string, platform: string, version: string): Promise<string>;
//# sourceMappingURL=vyperCompiler.d.ts.map