UNPKG

@truffle/compile-solidity

Version:
18 lines (17 loc) 722 B
/** * Loads solc and wrap it to parse imports rather than performing a full * compilation. Returns the wrapped form. * * This function optionally accepts an `parser` param, whose only possible * value is `"solcjs"`. Passing this option indicates that the imports-parser * should use a wrapped soljson module instead of whatever normal compiler * the user would use. NOTE that as a result, this function may download solc * up to twice: first time as usual, to get the specific version, then a second * time to get the solcjs of that version. */ export function loadParser({ events, compilers: { solc: solcConfig } }: { events: any; compilers: { solc: any; }; }): Promise<(body: any) => any>;