@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
37 lines • 1.1 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function getInputFromDependencyGraph(graph, optimizerConfig, evmVersion) {
const sources = {};
for (const file of graph.getResolvedFiles()) {
sources[file.globalName] = {
content: file.content,
};
}
const input = {
language: "Solidity",
sources,
settings: {
metadata: {
useLiteralContent: true,
},
optimizer: optimizerConfig,
outputSelection: {
"*": {
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
],
"": ["id", "ast"],
},
},
},
};
if (evmVersion !== undefined) {
input.settings.evmVersion = evmVersion;
}
return input;
}
exports.getInputFromDependencyGraph = getInputFromDependencyGraph;
//# sourceMappingURL=compiler-input.js.map
;